HHH-13179 Fixed code formatting issue
This commit is contained in:
parent
4413433ace
commit
02c3cc9e2e
|
@ -20,6 +20,7 @@ import org.hibernate.Transaction;
|
||||||
import org.hibernate.cfg.AvailableSettings;
|
import org.hibernate.cfg.AvailableSettings;
|
||||||
import org.hibernate.cfg.Configuration;
|
import org.hibernate.cfg.Configuration;
|
||||||
import org.hibernate.stat.CacheRegionStatistics;
|
import org.hibernate.stat.CacheRegionStatistics;
|
||||||
|
|
||||||
import org.hibernate.testing.TestForIssue;
|
import org.hibernate.testing.TestForIssue;
|
||||||
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
|
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
|
@ -56,6 +57,7 @@ public class HHH13179Test extends BaseCoreFunctionalTestCase {
|
||||||
"org/hibernate/test/cache/hhh13179/DiscriminatorSubclassPerson.hbm.xml"
|
"org/hibernate/test/cache/hhh13179/DiscriminatorSubclassPerson.hbm.xml"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// If those mappings reside somewhere other than resources/org/hibernate/test, change this.
|
// If those mappings reside somewhere other than resources/org/hibernate/test, change this.
|
||||||
@Override
|
@Override
|
||||||
protected String getBaseForMappings() {
|
protected String getBaseForMappings() {
|
||||||
|
@ -81,7 +83,8 @@ public class HHH13179Test extends BaseCoreFunctionalTestCase {
|
||||||
String regionName = "org.hibernate.test.cache.hhh13179.JoinedSubclassPerson";
|
String regionName = "org.hibernate.test.cache.hhh13179.JoinedSubclassPerson";
|
||||||
|
|
||||||
// sanity check
|
// sanity check
|
||||||
CacheRegionStatistics cacheRegionStatistics = s.getSessionFactory().getStatistics().getCacheRegionStatistics(regionName);
|
CacheRegionStatistics cacheRegionStatistics = s.getSessionFactory().getStatistics().getCacheRegionStatistics(
|
||||||
|
regionName );
|
||||||
Assert.assertEquals( "Cache put should be 0", 0, cacheRegionStatistics.getPutCount() );
|
Assert.assertEquals( "Cache put should be 0", 0, cacheRegionStatistics.getPutCount() );
|
||||||
|
|
||||||
JoinedSubclassPerson person1 = new JoinedSubclassUIPerson();
|
JoinedSubclassPerson person1 = new JoinedSubclassUIPerson();
|
||||||
|
@ -114,7 +117,8 @@ public class HHH13179Test extends BaseCoreFunctionalTestCase {
|
||||||
String regionName = "org.hibernate.test.cache.hhh13179.UnionSubclassPerson";
|
String regionName = "org.hibernate.test.cache.hhh13179.UnionSubclassPerson";
|
||||||
|
|
||||||
// sanity check
|
// sanity check
|
||||||
CacheRegionStatistics cacheRegionStatistics = s.getSessionFactory().getStatistics().getCacheRegionStatistics(regionName);
|
CacheRegionStatistics cacheRegionStatistics = s.getSessionFactory().getStatistics().getCacheRegionStatistics(
|
||||||
|
regionName );
|
||||||
Assert.assertEquals( "Cache put should be 0", 0, cacheRegionStatistics.getPutCount() );
|
Assert.assertEquals( "Cache put should be 0", 0, cacheRegionStatistics.getPutCount() );
|
||||||
|
|
||||||
UnionSubclassPerson person1 = new UnionSubclassUIPerson();
|
UnionSubclassPerson person1 = new UnionSubclassUIPerson();
|
||||||
|
@ -147,7 +151,8 @@ public class HHH13179Test extends BaseCoreFunctionalTestCase {
|
||||||
String regionName = "org.hibernate.test.cache.hhh13179.DiscriminatorSubclassPerson";
|
String regionName = "org.hibernate.test.cache.hhh13179.DiscriminatorSubclassPerson";
|
||||||
|
|
||||||
// sanity check
|
// sanity check
|
||||||
CacheRegionStatistics cacheRegionStatistics = s.getSessionFactory().getStatistics().getCacheRegionStatistics(regionName);
|
CacheRegionStatistics cacheRegionStatistics = s.getSessionFactory().getStatistics().getCacheRegionStatistics(
|
||||||
|
regionName );
|
||||||
Assert.assertEquals( "Cache put should be 0", 0, cacheRegionStatistics.getPutCount() );
|
Assert.assertEquals( "Cache put should be 0", 0, cacheRegionStatistics.getPutCount() );
|
||||||
|
|
||||||
DiscriminatorSubclassPerson person1 = new DiscriminatorSubclassUIPerson();
|
DiscriminatorSubclassPerson person1 = new DiscriminatorSubclassUIPerson();
|
||||||
|
|
Loading…
Reference in New Issue