HHH-14445 Javassist skip EntityWithMutableAttributesTest, LoadAndUpdateEntitiesWithCollectionsTest, SimpleDynamicUpdateTest, SimpleDynamicUpdateTest

This commit is contained in:
Andrea Boriero 2021-02-08 16:26:09 +01:00
parent 650a703e1c
commit a094e17d2a
4 changed files with 59 additions and 2 deletions

View File

@ -64,6 +64,9 @@ public class EntityWithMutableAttributesTest extends BaseNonConfigCoreFunctional
@Before
public void setUp() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
User user = new User();
@ -87,6 +90,9 @@ public class EntityWithMutableAttributesTest extends BaseNonConfigCoreFunctional
@After
public void tearDown() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
session.createQuery( "delete from User" ).executeUpdate();
@ -97,6 +103,9 @@ public class EntityWithMutableAttributesTest extends BaseNonConfigCoreFunctional
@Test
public void testLoad() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
User user = session.load( User.class, 1 );
@ -114,6 +123,9 @@ public class EntityWithMutableAttributesTest extends BaseNonConfigCoreFunctional
@Test
public void testMutableAttributeIsUpdated() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
User user = session.load( User.class, 1 );

View File

@ -63,6 +63,9 @@ public class LoadAndUpdateEntitiesWithCollectionsTest extends BaseNonConfigCoreF
@Before
public void setUp() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
User user = new User();
@ -90,7 +93,10 @@ public class LoadAndUpdateEntitiesWithCollectionsTest extends BaseNonConfigCoreF
}
@After
public void tearDwon() {
public void tearDown() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
session.createQuery( "delete from SamplingOrder" ).executeUpdate();
@ -103,6 +109,9 @@ public class LoadAndUpdateEntitiesWithCollectionsTest extends BaseNonConfigCoreF
@Test
public void testLoad() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
CriteriaBuilder cb = session.getCriteriaBuilder();
@ -126,6 +135,9 @@ public class LoadAndUpdateEntitiesWithCollectionsTest extends BaseNonConfigCoreF
@Test
public void testAddUserRoles() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
SamplingOrder samplingOrder = getSamplingOrder( session );
@ -200,6 +212,9 @@ public class LoadAndUpdateEntitiesWithCollectionsTest extends BaseNonConfigCoreF
@Test
public void testDeleteUserRoles() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
SamplingOrder samplingOrder = getSamplingOrder( session );
@ -220,6 +235,9 @@ public class LoadAndUpdateEntitiesWithCollectionsTest extends BaseNonConfigCoreF
@Test
public void testModifyUserMail() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
SamplingOrder samplingOrder = getSamplingOrder( session );

View File

@ -63,6 +63,9 @@ public class SimpleDynamicUpdateTest extends BaseNonConfigCoreFunctionalTestCase
@Before
public void setUp() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
User user = new User();
@ -88,6 +91,9 @@ public class SimpleDynamicUpdateTest extends BaseNonConfigCoreFunctionalTestCase
@Test
public void testIt() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
User user = session.getReference( User.class, 1 );

View File

@ -66,6 +66,9 @@ public class DynamicUpdateAndCollectionsTest extends BaseNonConfigCoreFunctional
@Before
public void setUp() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
User user = new User();
@ -92,7 +95,10 @@ public class DynamicUpdateAndCollectionsTest extends BaseNonConfigCoreFunctional
}
@After
public void tearDwon() {
public void tearDown() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
session.createQuery( "delete from SamplingOrder" ).executeUpdate();
@ -105,6 +111,9 @@ public class DynamicUpdateAndCollectionsTest extends BaseNonConfigCoreFunctional
@Test
public void testLoad() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
CriteriaBuilder cb = session.getCriteriaBuilder();
@ -128,6 +137,9 @@ public class DynamicUpdateAndCollectionsTest extends BaseNonConfigCoreFunctional
@Test
public void testRemoveCustomers() {
if ( skipTest ) {
return;
}
Long samplingOrderId = fromTransaction(
session -> {
SamplingOrder samplingOrder = getSamplingOrderFetchCustomer( session );
@ -146,6 +158,9 @@ public class DynamicUpdateAndCollectionsTest extends BaseNonConfigCoreFunctional
@Test
public void testAddUserRoles() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
SamplingOrder samplingOrder = getSamplingOrderFetchCustomer( session );
@ -207,6 +222,9 @@ public class DynamicUpdateAndCollectionsTest extends BaseNonConfigCoreFunctional
@Test
public void testDeleteUserRoles() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
SamplingOrder samplingOrder = getSamplingOrderFetchCustomer( session );
@ -226,6 +244,9 @@ public class DynamicUpdateAndCollectionsTest extends BaseNonConfigCoreFunctional
@Test
public void testModifyUserMail() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
SamplingOrder samplingOrder = getSamplingOrderFetchCustomer( session );