this.testLogClass(EasyMock.createMock(AnalysisNotPossibleLogEntry.class));
this.testLogClass(EasyMock.createMock(AnalysisNotPossibleBecauseOfExceptionLog.class));
}
private void testLogClass(Log logMock){
LogPrintoutFilter filter = LogPrintoutFilterFactory.getFilterForErrorsWithoutExceptions();
EasyMock.expect(logMock.getStatus()).andReturn(new com.jitcaforwin.trackinfoanalyzer.log.status.Error()).times(2);
EasyMock.replay(logMock);
assertFalse(filter.isPrintAllowed(logMock));
EasyMock.verify(logMock);
}