Fix tests failing due to an import which was not even required

This commit is contained in:
Vlad Mihalcea 2018-11-26 18:55:59 +02:00
parent 850f0cdd20
commit 4900832cc2
2 changed files with 2 additions and 13 deletions

View File

@ -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() );
}

View File

@ -57,7 +57,7 @@ public class ManyToOneLazyLoadingByIdTest extends BaseEntityManagerFunctionalTes
return country.getContinent();
} );
assertEquals( 1L, (long) continent.getId());
assertEquals( 1L, (long) continent.getId() );
assertProxyState( continent );
}