From 890d4348cd99f4c6f26095f883e0688ab7083b92 Mon Sep 17 00:00:00 2001 From: eugenp Date: Sun, 11 May 2014 10:39:34 +0300 Subject: [PATCH] minor testing work --- .../org/baeldung/persistence/model/Foo.java | 1 - .../persistence/IntegrationTestSuite.java | 21 +++++++++++++++++++ ...erviceBasicPersistenceIntegrationTest.java | 1 + ...ePaginationPersistenceIntegrationTest.java | 1 + .../FooServicePersistenceIntegrationTest.java | 1 + .../FooSortingServiceTest.java | 2 +- 6 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 spring-hibernate4/src/test/java/org/baeldung/persistence/IntegrationTestSuite.java rename spring-hibernate4/src/test/java/org/baeldung/persistence/{service => test}/FooSortingServiceTest.java (99%) diff --git a/spring-hibernate4/src/main/java/org/baeldung/persistence/model/Foo.java b/spring-hibernate4/src/main/java/org/baeldung/persistence/model/Foo.java index f6280c0363..0c2007a945 100644 --- a/spring-hibernate4/src/main/java/org/baeldung/persistence/model/Foo.java +++ b/spring-hibernate4/src/main/java/org/baeldung/persistence/model/Foo.java @@ -30,7 +30,6 @@ public class Foo implements Serializable { public Foo() { super(); - } public Foo(final String name) { diff --git a/spring-hibernate4/src/test/java/org/baeldung/persistence/IntegrationTestSuite.java b/spring-hibernate4/src/test/java/org/baeldung/persistence/IntegrationTestSuite.java new file mode 100644 index 0000000000..61f4dc456a --- /dev/null +++ b/spring-hibernate4/src/test/java/org/baeldung/persistence/IntegrationTestSuite.java @@ -0,0 +1,21 @@ +package org.baeldung.persistence; + +import org.baeldung.persistence.service.FooServiceBasicPersistenceIntegrationTest; +import org.baeldung.persistence.service.FooServicePaginationPersistenceIntegrationTest; +import org.baeldung.persistence.service.FooServicePersistenceIntegrationTest; +import org.baeldung.persistence.service.ParentServicePersistenceIntegrationTest; +import org.baeldung.persistence.test.FooSortingServiceTest; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; + +@RunWith(Suite.class) +@Suite.SuiteClasses({// @formatter:off + FooServiceBasicPersistenceIntegrationTest.class + ,FooServicePaginationPersistenceIntegrationTest.class + ,FooServicePersistenceIntegrationTest.class + ,ParentServicePersistenceIntegrationTest.class + ,FooSortingServiceTest.class +}) // @formatter:on +public class IntegrationTestSuite { + // +} diff --git a/spring-hibernate4/src/test/java/org/baeldung/persistence/service/FooServiceBasicPersistenceIntegrationTest.java b/spring-hibernate4/src/test/java/org/baeldung/persistence/service/FooServiceBasicPersistenceIntegrationTest.java index 457f5cc519..2865810c67 100644 --- a/spring-hibernate4/src/test/java/org/baeldung/persistence/service/FooServiceBasicPersistenceIntegrationTest.java +++ b/spring-hibernate4/src/test/java/org/baeldung/persistence/service/FooServiceBasicPersistenceIntegrationTest.java @@ -3,6 +3,7 @@ package org.baeldung.persistence.service; import static org.apache.commons.lang3.RandomStringUtils.randomAlphabetic; import org.baeldung.persistence.model.Foo; +import org.baeldung.persistence.service.IFooService; import org.baeldung.spring.PersistenceConfig; import org.hibernate.Session; import org.hibernate.SessionFactory; diff --git a/spring-hibernate4/src/test/java/org/baeldung/persistence/service/FooServicePaginationPersistenceIntegrationTest.java b/spring-hibernate4/src/test/java/org/baeldung/persistence/service/FooServicePaginationPersistenceIntegrationTest.java index 1204b8ed13..24f1e241ce 100644 --- a/spring-hibernate4/src/test/java/org/baeldung/persistence/service/FooServicePaginationPersistenceIntegrationTest.java +++ b/spring-hibernate4/src/test/java/org/baeldung/persistence/service/FooServicePaginationPersistenceIntegrationTest.java @@ -8,6 +8,7 @@ import static org.junit.Assert.assertThat; import java.util.List; import org.baeldung.persistence.model.Foo; +import org.baeldung.persistence.service.IFooService; import org.baeldung.spring.PersistenceConfig; import org.hibernate.Criteria; import org.hibernate.Query; diff --git a/spring-hibernate4/src/test/java/org/baeldung/persistence/service/FooServicePersistenceIntegrationTest.java b/spring-hibernate4/src/test/java/org/baeldung/persistence/service/FooServicePersistenceIntegrationTest.java index 84e5d39d15..5b45d65e57 100644 --- a/spring-hibernate4/src/test/java/org/baeldung/persistence/service/FooServicePersistenceIntegrationTest.java +++ b/spring-hibernate4/src/test/java/org/baeldung/persistence/service/FooServicePersistenceIntegrationTest.java @@ -3,6 +3,7 @@ package org.baeldung.persistence.service; import static org.apache.commons.lang3.RandomStringUtils.randomAlphabetic; import org.baeldung.persistence.model.Foo; +import org.baeldung.persistence.service.IFooService; import org.baeldung.spring.PersistenceConfig; import org.junit.Ignore; import org.junit.Test; diff --git a/spring-hibernate4/src/test/java/org/baeldung/persistence/service/FooSortingServiceTest.java b/spring-hibernate4/src/test/java/org/baeldung/persistence/test/FooSortingServiceTest.java similarity index 99% rename from spring-hibernate4/src/test/java/org/baeldung/persistence/service/FooSortingServiceTest.java rename to spring-hibernate4/src/test/java/org/baeldung/persistence/test/FooSortingServiceTest.java index b75e2b2f3b..a7d3172762 100644 --- a/spring-hibernate4/src/test/java/org/baeldung/persistence/service/FooSortingServiceTest.java +++ b/spring-hibernate4/src/test/java/org/baeldung/persistence/test/FooSortingServiceTest.java @@ -1,4 +1,4 @@ -package org.baeldung.persistence.service; +package org.baeldung.persistence.test; import java.util.List; import java.util.Set;