Search in sources :

Example 1 with LeaseStatusService

use of org.estatio.module.lease.dom.status.LeaseStatusService in project estatio by estatio.

the class LeaseStatusService_Test method setUp.

@Before
public void setUp() throws Exception {
    lease = new Lease();
    service = new LeaseStatusService();
    service.clockService = new ClockService() {

        @Override
        public LocalDate now() {
            // TODO Auto-generated method stub
            return new LocalDate(2014, 4, 1);
        }
    };
}
Also used : Lease(org.estatio.module.lease.dom.Lease) LeaseStatusService(org.estatio.module.lease.dom.status.LeaseStatusService) ClockService(org.apache.isis.applib.services.clock.ClockService) LocalDate(org.joda.time.LocalDate) Before(org.junit.Before)

Aggregations

ClockService (org.apache.isis.applib.services.clock.ClockService)1 Lease (org.estatio.module.lease.dom.Lease)1 LeaseStatusService (org.estatio.module.lease.dom.status.LeaseStatusService)1 LocalDate (org.joda.time.LocalDate)1 Before (org.junit.Before)1