@Override protected void inspectRecords( final List<IMonitoringRecord> eventsPassedToController, final List<IMonitoringRecord> eventFromMonitoringLog) { // we expect that reading abort on the occurrence of EVENT1_UNKNOWN_TYPE, i.e., the remaining // lines weren't processed Assert.assertEquals("Expected one record", 1, eventFromMonitoringLog.size()); Assert.assertEquals("Unexpected record", EVENT0_KNOWN_TYPE, eventFromMonitoringLog.get(0)); LogImplJUnit.reset(); }
@Override protected void refineWriterConfiguration( final Configuration config, final int numRecordsWritten) { LogImplJUnit.disableThrowable(MonitoringRecordException.class); }