persistence cleanup work
This commit is contained in:
parent
65bf9a0a94
commit
f0b106ab60
|
@ -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" });
|
||||
|
|
|
@ -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;
|
|
@ -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 {
|
||||
//
|
||||
}
|
Loading…
Reference in New Issue