persistence cleanup work

This commit is contained in:
eugenp 2014-06-03 19:58:42 +02:00
parent 65bf9a0a94
commit f0b106ab60
3 changed files with 18 additions and 2 deletions

View File

@ -37,7 +37,7 @@ public class PersistenceJPAConfig {
// beans
@Bean
public LocalContainerEntityManagerFactoryBean entityManagerFactoryBean() {
public LocalContainerEntityManagerFactoryBean entityManagerFactory() {
final LocalContainerEntityManagerFactoryBean em = new LocalContainerEntityManagerFactoryBean();
em.setDataSource(dataSource());
em.setPackagesToScan(new String[] { "org.baeldung.persistence.model" });

View File

@ -20,7 +20,7 @@ import org.springframework.test.context.support.AnnotationConfigContextLoader;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = { PersistenceJPAConfig.class }, loader = AnnotationConfigContextLoader.class)
public class FooServiceSortingTestsWithNulls {
public class FooServiceSortingWitNullsManualTest {
@PersistenceContext
private EntityManager entityManager;

View File

@ -0,0 +1,16 @@
package org.baeldung.persistence.service;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses({// @formatter:off
FooPaginationPersistenceIntegrationTest.class
,FooServicePersistenceIntegrationTest.class
,FooServiceSortingTests.class
// manual only
// ,FooServiceSortingWitNullsManualTest.class
}) // @formatter:on
public class PersistenceTestSuite {
//
}