Skip to content

Commit

Permalink
HHH-7940 - Remove unnecessary test case output.
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed Dec 19, 2016
1 parent 8db194e commit 8002595
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 24 deletions.
Expand Up @@ -38,15 +38,13 @@ protected Class<?>[] getAnnotatedClasses() {
@Priority(10)
public void initData() {
// Revision 1 - Create indexed entries.
System.out.println( "--- REV 1 ---" );
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
Parent p = new Parent( 1 );
p.getChildren().add( "child1" );
p.getChildren().add( "child2" );
entityManager.persist( p );
} );

System.out.println( "--- REV 2 ---" );
// Revision 2 - remove an indexed entry, resetting positions.
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
final Parent p = entityManager.find( Parent.class, 1 );
Expand All @@ -55,7 +53,6 @@ public void initData() {
entityManager.merge( p );
} );

System.out.println( "--- REV 3 ---" );
// Revision 3 - add new indexed entity to reset positions
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
final Parent p = entityManager.find( Parent.class, 1 );
Expand All @@ -64,7 +61,6 @@ public void initData() {
entityManager.merge( p );
} );

System.out.println( "--- REV 4 ---" );
// Revision 4 - remove all children
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
final Parent p = entityManager.find( Parent.class, 1 );
Expand Down
Expand Up @@ -38,15 +38,13 @@ protected Class<?>[] getAnnotatedClasses() {
@Priority(10)
public void initData() {
// Revision 1 - Create indexed entries.
System.out.println( "--- REV 1 ---" );
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
Parent p = new Parent( 1 );
p.getChildren().add( "child1" );
p.getChildren().add( "child2" );
entityManager.persist( p );
} );

System.out.println( "--- REV 2 ---" );
// Revision 2 - remove an indexed entry, resetting positions.
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
final Parent p = entityManager.find( Parent.class, 1 );
Expand All @@ -55,7 +53,6 @@ public void initData() {
entityManager.merge( p );
} );

System.out.println( "--- REV 3 ---" );
// Revision 3 - add new indexed entity to reset positions
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
final Parent p = entityManager.find( Parent.class, 1 );
Expand All @@ -64,7 +61,6 @@ public void initData() {
entityManager.merge( p );
} );

System.out.println( "--- REV 4 ---" );
// Revision 4 - remove all children
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
final Parent p = entityManager.find( Parent.class, 1 );
Expand Down
Expand Up @@ -38,7 +38,6 @@ protected Class<?>[] getAnnotatedClasses() {
@Priority(10)
public void initData() {
// Revision 1 - Create indexed entries.
System.out.println( "--- REV 1 ---" );
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
Parent p = new Parent( 1 );
p.addChild( new Child( 1, "child1" ) );
Expand All @@ -47,7 +46,6 @@ public void initData() {
p.getChildren().forEach( entityManager::persist );
} );

System.out.println( "--- REV 2 ---" );
// Revision 2 - remove an indexed entry, resetting positions.
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
final Parent p = entityManager.find( Parent.class, 1 );
Expand All @@ -56,7 +54,6 @@ public void initData() {
entityManager.merge( p );
} );

System.out.println( "--- REV 3 ---" );
// Revision 3 - add new indexed entity to reset positions
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
final Parent p = entityManager.find( Parent.class, 1 );
Expand All @@ -68,7 +65,6 @@ public void initData() {
entityManager.merge( p );
} );

System.out.println( "--- REV 4 ---" );
// Revision 4 - remove all children
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
final Parent p = entityManager.find( Parent.class, 1 );
Expand Down
Expand Up @@ -38,7 +38,6 @@ protected Class<?>[] getAnnotatedClasses() {
@Priority(10)
public void initData() {
// Revision 1 - Create indexed entries.
System.out.println( "--- REV 1 ---" );
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
Parent p = new Parent( 1 );
p.addChild( new Child( 1, "child1" ) );
Expand All @@ -47,7 +46,6 @@ public void initData() {
p.getChildren().forEach( entityManager::persist );
} );

System.out.println( "--- REV 2 ---" );
// Revision 2 - remove an indexed entry, resetting positions.
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
final Parent p = entityManager.find( Parent.class, 1 );
Expand All @@ -56,7 +54,6 @@ public void initData() {
entityManager.merge( p );
} );

System.out.println( "--- REV 3 ---" );
// Revision 3 - add new indexed entity to reset positions
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
final Parent p = entityManager.find( Parent.class, 1 );
Expand All @@ -68,7 +65,6 @@ public void initData() {
entityManager.merge( p );
} );

System.out.println( "--- REV 4 ---" );
// Revision 4 - remove all children
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
final Parent p = entityManager.find( Parent.class, 1 );
Expand Down
Expand Up @@ -39,7 +39,6 @@ protected Class<?>[] getAnnotatedClasses() {
@Priority(10)
public void initData() {
// Revision 1 - Create indexed entries.
System.out.println( "--- REV 1 ---" );
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
Parent p = new Parent( 1 );
p.addChild( new Child( 1, "child1" ) );
Expand All @@ -48,7 +47,6 @@ public void initData() {
p.getChildren().forEach( entityManager::persist );
} );

System.out.println( "--- REV 2 ---" );
// Revision 2 - remove an indexed entry, resetting positions.
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
final Parent p = entityManager.find( Parent.class, 1 );
Expand All @@ -57,7 +55,6 @@ public void initData() {
entityManager.merge( p );
} );

System.out.println( "--- REV 3 ---" );
// Revision 3 - add new indexed entity to reset positions
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
final Parent p = entityManager.find( Parent.class, 1 );
Expand All @@ -69,7 +66,6 @@ public void initData() {
entityManager.merge( p );
} );

System.out.println( "--- REV 4 ---" );
// Revision 4 - remove all children
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
final Parent p = entityManager.find( Parent.class, 1 );
Expand Down
Expand Up @@ -39,7 +39,6 @@ protected Class<?>[] getAnnotatedClasses() {
@Priority(10)
public void initData() {
// Revision 1 - Create indexed entries.
System.out.println( "--- REV 1 ---" );
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
Parent p = new Parent( 1 );
p.addChild( new Child( 1, "child1" ) );
Expand All @@ -48,7 +47,6 @@ public void initData() {
p.getChildren().forEach( entityManager::persist );
} );

System.out.println( "--- REV 2 ---" );
// Revision 2 - remove an indexed entry, resetting positions.
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
final Parent p = entityManager.find( Parent.class, 1 );
Expand All @@ -57,7 +55,6 @@ public void initData() {
entityManager.merge( p );
} );

System.out.println( "--- REV 3 ---" );
// Revision 3 - add new indexed entity to reset positions
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
final Parent p = entityManager.find( Parent.class, 1 );
Expand All @@ -69,7 +66,6 @@ public void initData() {
entityManager.merge( p );
} );

System.out.println( "--- REV 4 ---" );
// Revision 4 - remove all children
TransactionUtil.doInJPA( this::entityManagerFactory, entityManager -> {
final Parent p = entityManager.find( Parent.class, 1 );
Expand Down

0 comments on commit 8002595

Please sign in to comment.