Class DataRecorderTest
java.lang.Object
test.de.iip_ecosphere.platform.services.environment.testing.DataRecorderTest
Tests
DataRecorder.- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTesting data class, usual IIP style. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidtestRecorder(File file, de.iip_ecosphere.platform.services.environment.testing.DataRecorder recorder, Function<Object, String> formatter) Tests the recorder.voidTests the recorder with an invalid file, shall go to stdout.voidTests the recorder with a valid temporary file.
-
Constructor Details
-
DataRecorderTest
public DataRecorderTest()
-
-
Method Details
-
testRecorderValidFile
Tests the recorder with a valid temporary file.- Throws:
IOException- shall not occur if successful
-
testRecorderInvalidFile
public void testRecorderInvalidFile()Tests the recorder with an invalid file, shall go to stdout. -
testRecorder
private void testRecorder(File file, de.iip_ecosphere.platform.services.environment.testing.DataRecorder recorder, Function<Object, String> formatter) Tests the recorder.- Parameters:
file- the file to read for assertion, may be null for nonerecorder- the recorder instance to testformatter- the formatter used to create the recorder
-