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

View File

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

View File

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

View File

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