use of org.eclipse.winery.repository.converter.writer.YamlPrinter in project winery by eclipse.
the class YamlWriterTests method testPolicyTypeSerialization.
@ParameterizedTest
@ArgumentsSource(PolicyTypeArgumentsProvider.class)
public void testPolicyTypeSerialization(YTServiceTemplate prop, String expected) {
YamlWriter writer = new YamlWriter();
YamlPrinter p = writer.visit(prop, new YamlWriter.Parameter(0).addContext("root"));
assertEquals(expected, p.toString());
}
use of org.eclipse.winery.repository.converter.writer.YamlPrinter in project winery by eclipse.
the class YamlWriterTests method testPropertyFunctionSerialization.
@ParameterizedTest
@ArgumentsSource(PropertyFunctionArgumentsProvider.class)
public void testPropertyFunctionSerialization(YTPropertyAssignment prop, String expected) {
YamlWriter writer = new YamlWriter();
YamlPrinter p = writer.visit(prop, new YamlWriter.Parameter(0).addContext("root"));
assertEquals(expected, p.toString());
}
Aggregations