use of org.eclipse.winery.repository.converter.writer.YamlWriter in project winery by eclipse.
the class YamlWriterTests method testServiceTemplates.
@ParameterizedTest
@ArgumentsSource(ServiceTemplatesProvider.class)
public void testServiceTemplates(YTServiceTemplate template, String expected) {
YamlWriter writer = new YamlWriter();
YamlPrinter p = writer.visit(template, new YamlWriter.Parameter(0));
assertEquals(expected, p.toString());
}
use of org.eclipse.winery.repository.converter.writer.YamlWriter in project winery by eclipse.
the class YamlWriterTests method testImports.
@ParameterizedTest
@ArgumentsSource(ImportArgumentsProvider.class)
public void testImports(YTImportDefinition importDef, String expected) {
YamlWriter writer = new YamlWriter();
YamlPrinter p = writer.visit(importDef, new YamlWriter.Parameter(0).addContext("root"));
assertEquals(expected, p.toString());
}
use of org.eclipse.winery.repository.converter.writer.YamlWriter 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.YamlWriter 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