return new TaskFileEventConverter();
}
@Override
public void testConvert() throws Exception {
final ITask task = mock(ITask.class);
given(task.getCreationDate()).willReturn(new Date());
final TaskFileEvent event = new TaskFileEvent(
new Interval(0, 1), new Path("/a/b"), task);
final TaskFileEventType type = converter.convert(event);
assertEquals(
task.getHandleIdentifier(),
type.getTaskId().getHandleId());
assertEquals(
task.getCreationDate(),
type.getTaskId().getCreationDate().toGregorianCalendar().getTime());
assertEquals(
event.getInterval().toDurationMillis(),
type.getDuration());
assertEquals(