String logFilePattern = "%d{HH:mm:ss,SSS} - [%L][%c{1}][%p]: %m%n";
logFileLoader.load(logFilePath, logFilePattern);
Assert.assertEquals(2, logList.getFilteredLogsNum());
LogEvent logMock = mock(LogEvent.class);
when(logMock.getDate()).thenReturn("14:31:03,443").thenReturn("14:31:21,547");
when(logMock.getLineNumber()).thenReturn("16").thenReturn("138");
when(logMock.getCategoryName()).thenReturn("SwtCellClickProcessor").thenReturn("DataViewer");
when(logMock.getLevel()).thenReturn("INFO").thenReturn("FATAL");
when(logMock.getMessage()).thenReturn("Log4j configuration was successfully loaded.").thenReturn(
"Selected item/cell: 1,2");
Assert.assertEquals(logMock.getDate(), logList.getFilteredLog(0).getDate());
Assert.assertEquals(logMock.getLineNumber(), logList.getFilteredLog(0).getLineNumber());
Assert.assertEquals(logMock.getCategoryName(), logList.getFilteredLog(0).getCategoryName());
Assert.assertEquals(logMock.getLevel(), logList.getFilteredLog(0).getLevel());
Assert.assertEquals(logMock.getMessage(), logList.getFilteredLog(0).getMessage());
Assert.assertEquals(logMock.getDate(), logList.getFilteredLog(1).getDate());
Assert.assertEquals(logMock.getLineNumber(), logList.getFilteredLog(1).getLineNumber());
Assert.assertEquals(logMock.getCategoryName(), logList.getFilteredLog(1).getCategoryName());
Assert.assertEquals(logMock.getLevel(), logList.getFilteredLog(1).getLevel());
Assert.assertEquals(logMock.getMessage(), logList.getFilteredLog(1).getMessage());
}