/** * Sets up a simple test filter structure (SimpleListReader -> RecordConverter -> ListCollectionFilter) * and creates an OperationExecutionRecord that will be converterd for testing reasons. * * @throws Exception * throws exceptions that are thrown while setting up the filter structure */ @Before public void setUp() throws Exception { final OperationExecutionRecord oer; final RecordConverter recordConverter; this.analysisController = new AnalysisController(); recordConverter = new RecordConverter(new Configuration(), this.analysisController); this.simpleListReader = new ListReader<OperationExecutionRecord>(new Configuration(), this.analysisController); this.listCollectionfilter = new ListCollectionFilter<NamedDoubleRecord>(new Configuration(), this.analysisController); this.analysisController.connect(this.simpleListReader, ListReader.OUTPUT_PORT_NAME, recordConverter, RecordConverter.INPUT_PORT_NAME_OER); this.analysisController.connect(recordConverter, RecordConverter.OUTPUT_PORT_NAME_NDR, this.listCollectionfilter, ListCollectionFilter.INPUT_PORT_NAME); oer = new OperationExecutionRecord(RecordConverterTest.operationSignature, OperationExecutionRecord.NO_SESSION_ID, OperationExecutionRecord.NO_TRACE_ID, RecordConverterTest.timeIn, RecordConverterTest.timeOut, RecordConverterTest.hostAppInput, OperationExecutionRecord.NO_EOI_ESS, OperationExecutionRecord.NO_EOI_ESS); oer.setLoggingTimestamp(RecordConverterTest.loggingTimestamp); this.convertRecord(oer); }