Class YamlTest
java.lang.Object
test.de.oktoflow.platform.support.yaml.snakeyaml.YamlTest
Tests
Yaml.- Author:
- Holger Eichelberger, SSE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> TfromResource(de.iip_ecosphere.platform.support.function.IOFunction<InputStream, T> func) Appliesfuncto a test resource and returns the result.private static <T> TfromResource(String resource, de.iip_ecosphere.platform.support.function.IOFunction<InputStream, T> func) Appliesfuncto a test resource and returns the result.voidtestYaml()Tests basic YAML functions.
-
Constructor Details
-
YamlTest
public YamlTest()
-
-
Method Details
-
fromResource
private static <T> T fromResource(de.iip_ecosphere.platform.support.function.IOFunction<InputStream, T> func) throws IOExceptionAppliesfuncto 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 IOExceptionAppliesfuncto a test resource and returns the result.- Parameters:
resource- the name of the resourcefunc- the function to apply- Returns:
- the result from function
- Throws:
IOException- shall not occur
-
testYaml
Tests basic YAML functions.- Throws:
IOException- shall not occur
-