java.lang.Object
test.de.iip_ecosphere.platform.services.environment.testing.DataRecorderTest

public class DataRecorderTest extends Object
Tests DataRecorder.
Author:
Holger Eichelberger, SSE
  • Constructor Details

    • DataRecorderTest

      public DataRecorderTest()
  • Method Details

    • testRecorderValidFile

      public void testRecorderValidFile() throws IOException
      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 none
      recorder - the recorder instance to test
      formatter - the formatter used to create the recorder