Search in sources :

Example 11 with Usecase

use of org.qi4j.api.usecase.Usecase 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);
    module.newUnitOfWork(usecase);
}
Also used : Usecase(org.qi4j.api.usecase.Usecase) Before(org.junit.Before)

Aggregations

Usecase (org.qi4j.api.usecase.Usecase)11 UnitOfWork (org.qi4j.api.unitofwork.UnitOfWork)6 Test (org.junit.Test)4 Before (org.junit.Before)2 EntityReference (org.qi4j.api.entity.EntityReference)2 EntityNotFoundException (org.qi4j.spi.entitystore.EntityNotFoundException)2 EntityStoreUnitOfWork (org.qi4j.spi.entitystore.EntityStoreUnitOfWork)2 EmptyRepresentation (org.restlet.representation.EmptyRepresentation)2 ResourceException (org.restlet.resource.ResourceException)2 BufferedReader (java.io.BufferedReader)1 IOException (java.io.IOException)1 StringReader (java.io.StringReader)1 Connection (java.sql.Connection)1 PreparedStatement (java.sql.PreparedStatement)1 ResultSet (java.sql.ResultSet)1 SQLException (java.sql.SQLException)1 HashSet (java.util.HashSet)1 DateTime (org.joda.time.DateTime)1 Interval (org.joda.time.Interval)1 AssociationDescriptor (org.qi4j.api.association.AssociationDescriptor)1