minor testing work

This commit is contained in:
eugenp 2014-05-11 10:39:34 +03:00
parent a2c98ab37f
commit 890d4348cd
6 changed files with 25 additions and 2 deletions

View File

@ -30,7 +30,6 @@ public class Foo implements Serializable {
public Foo() { public Foo() {
super(); super();
} }
public Foo(final String name) { public Foo(final String name) {

View File

@ -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 {
//
}

View File

@ -3,6 +3,7 @@ package org.baeldung.persistence.service;
import static org.apache.commons.lang3.RandomStringUtils.randomAlphabetic; import static org.apache.commons.lang3.RandomStringUtils.randomAlphabetic;
import org.baeldung.persistence.model.Foo; import org.baeldung.persistence.model.Foo;
import org.baeldung.persistence.service.IFooService;
import org.baeldung.spring.PersistenceConfig; import org.baeldung.spring.PersistenceConfig;
import org.hibernate.Session; import org.hibernate.Session;
import org.hibernate.SessionFactory; import org.hibernate.SessionFactory;

View File

@ -8,6 +8,7 @@ import static org.junit.Assert.assertThat;
import java.util.List; import java.util.List;
import org.baeldung.persistence.model.Foo; import org.baeldung.persistence.model.Foo;
import org.baeldung.persistence.service.IFooService;
import org.baeldung.spring.PersistenceConfig; import org.baeldung.spring.PersistenceConfig;
import org.hibernate.Criteria; import org.hibernate.Criteria;
import org.hibernate.Query; import org.hibernate.Query;

View File

@ -3,6 +3,7 @@ package org.baeldung.persistence.service;
import static org.apache.commons.lang3.RandomStringUtils.randomAlphabetic; import static org.apache.commons.lang3.RandomStringUtils.randomAlphabetic;
import org.baeldung.persistence.model.Foo; import org.baeldung.persistence.model.Foo;
import org.baeldung.persistence.service.IFooService;
import org.baeldung.spring.PersistenceConfig; import org.baeldung.spring.PersistenceConfig;
import org.junit.Ignore; import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;

View File

@ -1,4 +1,4 @@
package org.baeldung.persistence.service; package org.baeldung.persistence.test;
import java.util.List; import java.util.List;
import java.util.Set; import java.util.Set;