Polishing
This commit is contained in:
@@ -253,6 +253,7 @@ public class LocalContainerEntityManagerFactoryBeanTests extends AbstractEntityM
|
||||
createEntityManagerFactoryBean("org/springframework/orm/jpa/domain/persistence.xml", null, "call me Bob"));
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
protected LocalContainerEntityManagerFactoryBean createEntityManagerFactoryBean(
|
||||
String persistenceXml, Properties props, String entityManagerName) throws Exception {
|
||||
|
||||
@@ -273,7 +274,7 @@ public class LocalContainerEntityManagerFactoryBeanTests extends AbstractEntityM
|
||||
|
||||
assertThat(actualPui.getPersistenceUnitName()).isEqualTo(entityManagerName);
|
||||
if (props != null) {
|
||||
assertThat((Object) actualProps).isEqualTo(props);
|
||||
assertThat(actualProps).isEqualTo(props);
|
||||
}
|
||||
//checkInvariants(containerEmfb);
|
||||
|
||||
|
||||
@@ -57,6 +57,7 @@ public class LocalEntityManagerFactoryBeanTests extends AbstractEntityManagerFac
|
||||
testValidUsage(new Properties());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
protected void testValidUsage(Properties props) throws Exception {
|
||||
// This will be set by DummyPersistenceProvider
|
||||
actualName = null;
|
||||
@@ -74,7 +75,7 @@ public class LocalEntityManagerFactoryBeanTests extends AbstractEntityManagerFac
|
||||
|
||||
assertThat(actualName).isSameAs(entityManagerName);
|
||||
if (props != null) {
|
||||
assertThat((Object) actualProps).isEqualTo(props);
|
||||
assertThat(actualProps).isEqualTo(props);
|
||||
}
|
||||
checkInvariants(lemfb);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user