Search in sources :

Example 6 with House

use of org.apache.deltaspike.data.test.ee7.domain.House in project deltaspike by apache.

the class HouseRepositoryTest method should_combine_entity_graph_with_explicit_query.

@Test
@InSequence(3)
public void should_combine_entity_graph_with_explicit_query() throws Exception {
    House house = repository.fetchByName("Bellevue");
    assertNotNull(house);
    assertTrue(puu.isLoaded(house, "flats"));
    assertFalse(puu.isLoaded(house, "garages"));
}
Also used : House(org.apache.deltaspike.data.test.ee7.domain.House) Test(org.junit.Test) InSequence(org.jboss.arquillian.junit.InSequence)

Aggregations

House (org.apache.deltaspike.data.test.ee7.domain.House)6 InSequence (org.jboss.arquillian.junit.InSequence)5 Test (org.junit.Test)5 Flat (org.apache.deltaspike.data.test.ee7.domain.Flat)3 PersistenceUnitUtil (javax.persistence.PersistenceUnitUtil)1 Garage (org.apache.deltaspike.data.test.ee7.domain.Garage)1 Tenant (org.apache.deltaspike.data.test.ee7.domain.Tenant)1 Before (org.junit.Before)1