java.lang.Object
test.de.oktoflow.platform.support.yaml.snakeyaml.YamlTest

public class YamlTest extends Object
Tests Yaml.
Author:
Holger Eichelberger, SSE
  • Constructor Details

    • YamlTest

      public YamlTest()
  • Method Details

    • fromResource

      private static <T> T fromResource(de.iip_ecosphere.platform.support.function.IOFunction<InputStream,T> func) throws IOException
      Applies func to a test resource and returns the result.
      Parameters:
      func - the function to apply
      Returns:
      the result from function
      Throws:
      IOException - shall not occur
    • fromResource

      private static <T> T fromResource(String resource, de.iip_ecosphere.platform.support.function.IOFunction<InputStream,T> func) throws IOException
      Applies func to a test resource and returns the result.
      Parameters:
      resource - the name of the resource
      func - the function to apply
      Returns:
      the result from function
      Throws:
      IOException - shall not occur
    • testYaml

      public void testYaml() throws IOException
      Tests basic YAML functions.
      Throws:
      IOException - shall not occur