Search in sources :

Example 1 with RouteSpecificationFactoryService

use of org.qi4j.sample.dcicargo.sample_b.data.factory.RouteSpecificationFactoryService in project qi4j-sdk by Qi4j.

the class TestApplication method prepareTest.

@Before
public void prepareTest() throws Exception {
    logger.info(name.getMethodName());
    Usecase usecase = UsecaseBuilder.newUsecase("Usecase:" + name);
    UnitOfWork uow = module.newUnitOfWork(usecase);
    populateTestData();
    ServiceReference<RouteSpecificationFactoryService> routeSpecFactoryServiceRef = module.findService(RouteSpecificationFactoryService.class);
    routeSpecFactory = routeSpecFactoryServiceRef.get();
    // Separate test suites in console output
    System.out.println();
}
Also used : UnitOfWork(org.qi4j.api.unitofwork.UnitOfWork) Usecase(org.qi4j.api.usecase.Usecase) RouteSpecificationFactoryService(org.qi4j.sample.dcicargo.sample_b.data.factory.RouteSpecificationFactoryService) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 UnitOfWork (org.qi4j.api.unitofwork.UnitOfWork)1 Usecase (org.qi4j.api.usecase.Usecase)1 RouteSpecificationFactoryService (org.qi4j.sample.dcicargo.sample_b.data.factory.RouteSpecificationFactoryService)1