From 4900832cc2f2b2ff26c8934124137f244dba3972 Mon Sep 17 00:00:00 2001 From: Vlad Mihalcea Date: Mon, 26 Nov 2018 18:55:59 +0200 Subject: [PATCH] Fix tests failing due to an import which was not even required --- .../ManyToOneLazyLoadingByIdJpaComplianceTest.java | 13 +------------ .../test/lazyload/ManyToOneLazyLoadingByIdTest.java | 2 +- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/test/lazyload/ManyToOneLazyLoadingByIdJpaComplianceTest.java b/hibernate-core/src/test/java/org/hibernate/test/lazyload/ManyToOneLazyLoadingByIdJpaComplianceTest.java index 4d42a025cb..7d58eed74a 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/lazyload/ManyToOneLazyLoadingByIdJpaComplianceTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/lazyload/ManyToOneLazyLoadingByIdJpaComplianceTest.java @@ -7,22 +7,10 @@ package org.hibernate.test.lazyload; import java.util.Map; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import org.hibernate.LazyInitializationException; import org.hibernate.cfg.AvailableSettings; -import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; -import org.junit.Test; - -import org.apache.xpath.operations.Bool; - -import static org.hibernate.testing.transaction.TransactionUtil.doInJPA; import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; /** * @author Vlad Mihalcea @@ -34,6 +22,7 @@ public class ManyToOneLazyLoadingByIdJpaComplianceTest extends ManyToOneLazyLoad settings.put( AvailableSettings.JPA_PROXY_COMPLIANCE, Boolean.TRUE ); } + @Override protected void assertProxyState(Continent continent) { assertEquals( "Europe", continent.getName() ); } diff --git a/hibernate-core/src/test/java/org/hibernate/test/lazyload/ManyToOneLazyLoadingByIdTest.java b/hibernate-core/src/test/java/org/hibernate/test/lazyload/ManyToOneLazyLoadingByIdTest.java index 8c43f2ab51..5d7ba0434b 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/lazyload/ManyToOneLazyLoadingByIdTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/lazyload/ManyToOneLazyLoadingByIdTest.java @@ -57,7 +57,7 @@ public class ManyToOneLazyLoadingByIdTest extends BaseEntityManagerFunctionalTes return country.getContinent(); } ); - assertEquals( 1L, (long) continent.getId()); + assertEquals( 1L, (long) continent.getId() ); assertProxyState( continent ); }