Fix tests failing due to an import which was not even required
This commit is contained in:
parent
850f0cdd20
commit
4900832cc2
|
@ -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() );
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ public class ManyToOneLazyLoadingByIdTest extends BaseEntityManagerFunctionalTes
|
|||
return country.getContinent();
|
||||
} );
|
||||
|
||||
assertEquals( 1L, (long) continent.getId());
|
||||
assertEquals( 1L, (long) continent.getId() );
|
||||
|
||||
assertProxyState( continent );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue