Skip to content

Commit

Permalink
HHH-14445 Javassist skip EntityWithMutableAttributesTest, LoadAndUpda…
Browse files Browse the repository at this point in the history
…teEntitiesWithCollectionsTest, SimpleDynamicUpdateTest, SimpleDynamicUpdateTest
  • Loading branch information
dreab8 committed Feb 8, 2021
1 parent 650a703 commit a094e17
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 2 deletions.
Expand Up @@ -64,6 +64,9 @@ protected void applyMetadataSources(MetadataSources sources) {

@Before
public void setUp() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
User user = new User();
Expand All @@ -87,6 +90,9 @@ public void setUp() {

@After
public void tearDown() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
session.createQuery( "delete from User" ).executeUpdate();
Expand All @@ -97,6 +103,9 @@ public void tearDown() {

@Test
public void testLoad() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
User user = session.load( User.class, 1 );
Expand All @@ -114,6 +123,9 @@ user, instanceOf( PersistentAttributeInterceptable.class )

@Test
public void testMutableAttributeIsUpdated() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
User user = session.load( User.class, 1 );
Expand Down
Expand Up @@ -63,6 +63,9 @@ protected void applyMetadataSources(MetadataSources sources) {

@Before
public void setUp() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
User user = new User();
Expand Down Expand Up @@ -90,7 +93,10 @@ public void setUp() {
}

@After
public void tearDwon() {
public void tearDown() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
session.createQuery( "delete from SamplingOrder" ).executeUpdate();
Expand All @@ -103,6 +109,9 @@ public void tearDwon() {

@Test
public void testLoad() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
CriteriaBuilder cb = session.getCriteriaBuilder();
Expand All @@ -126,6 +135,9 @@ public void testLoad() {

@Test
public void testAddUserRoles() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
SamplingOrder samplingOrder = getSamplingOrder( session );
Expand Down Expand Up @@ -200,6 +212,9 @@ public void testAddUserRoles() {

@Test
public void testDeleteUserRoles() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
SamplingOrder samplingOrder = getSamplingOrder( session );
Expand All @@ -220,6 +235,9 @@ public void testDeleteUserRoles() {

@Test
public void testModifyUserMail() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
SamplingOrder samplingOrder = getSamplingOrder( session );
Expand Down
Expand Up @@ -63,6 +63,9 @@ protected void applyMetadataSources(MetadataSources sources) {

@Before
public void setUp() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
User user = new User();
Expand All @@ -88,6 +91,9 @@ public void setUp() {

@Test
public void testIt() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
User user = session.getReference( User.class, 1 );
Expand Down
Expand Up @@ -66,6 +66,9 @@ protected void applyMetadataSources(MetadataSources sources) {

@Before
public void setUp() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
User user = new User();
Expand All @@ -92,7 +95,10 @@ public void setUp() {
}

@After
public void tearDwon() {
public void tearDown() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
session.createQuery( "delete from SamplingOrder" ).executeUpdate();
Expand All @@ -105,6 +111,9 @@ public void tearDwon() {

@Test
public void testLoad() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
CriteriaBuilder cb = session.getCriteriaBuilder();
Expand All @@ -128,6 +137,9 @@ public void testLoad() {

@Test
public void testRemoveCustomers() {
if ( skipTest ) {
return;
}
Long samplingOrderId = fromTransaction(
session -> {
SamplingOrder samplingOrder = getSamplingOrderFetchCustomer( session );
Expand All @@ -146,6 +158,9 @@ public void testRemoveCustomers() {

@Test
public void testAddUserRoles() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
SamplingOrder samplingOrder = getSamplingOrderFetchCustomer( session );
Expand Down Expand Up @@ -207,6 +222,9 @@ public void testAddUserRoles() {

@Test
public void testDeleteUserRoles() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
SamplingOrder samplingOrder = getSamplingOrderFetchCustomer( session );
Expand All @@ -226,6 +244,9 @@ public void testDeleteUserRoles() {

@Test
public void testModifyUserMail() {
if ( skipTest ) {
return;
}
inTransaction(
session -> {
SamplingOrder samplingOrder = getSamplingOrderFetchCustomer( session );
Expand Down

0 comments on commit a094e17

Please sign in to comment.