use of com.artezio.arttime.services.HourTypeService in project ART-TIME by Artezio.
the class ReportedHoursIndicatorTest method setUp.
@Before
public void setUp() throws Exception {
loggedEmployee = new Employee(userName);
hoursIndicator = createMockBuilder(ReportedHoursIndicator.class).addMockedMethod("getFilter").createMock();
period = new Period();
workTimeService = createMock(WorkTimeService.class);
employeeService = createMock(EmployeeService.class);
filter = createMock(Filter.class);
hourTypeService = createMock(HourTypeService.class);
expect(employeeService.getLoggedEmployee()).andReturn(Optional.of(loggedEmployee)).anyTimes();
replay(employeeService);
setField(hoursIndicator, "workTimeService", workTimeService);
setField(hoursIndicator, "employeeService", employeeService);
setField(hoursIndicator, "hourTypeService", hourTypeService);
}
Aggregations