Search in sources :

Example 11 with TServiceTemplate

use of org.eclipse.winery.model.tosca.yaml.TServiceTemplate in project winery by eclipse.

the class Datatypes method testNodeTemplateWithDataTypes.

@Test
public void testNodeTemplateWithDataTypes() throws Exception {
    String name = "node_template-using-data_types";
    String namespace = "http://www.example.com/NodeTemplateUsingDataType";
    TServiceTemplate serviceTemplate = readServiceTemplate(name, namespace);
    Definitions definitions = convert(serviceTemplate, name, namespace);
    writeXml(definitions, name, namespace);
    Assert.assertNotNull(definitions);
}
Also used : Definitions(org.eclipse.winery.model.tosca.Definitions) TServiceTemplate(org.eclipse.winery.model.tosca.yaml.TServiceTemplate) Test(org.junit.Test)

Aggregations

TServiceTemplate (org.eclipse.winery.model.tosca.yaml.TServiceTemplate)11 Definitions (org.eclipse.winery.model.tosca.Definitions)5 MultiException (org.eclipse.winery.yaml.common.exception.MultiException)5 Path (java.nio.file.Path)4 Test (org.junit.Test)4 Reader (org.eclipse.winery.yaml.common.reader.yaml.Reader)3 IOException (java.io.IOException)2 InputStream (java.io.InputStream)2 Parameter (org.eclipse.winery.yaml.common.validator.support.Parameter)2 DisplayName (org.junit.jupiter.api.DisplayName)2 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)2 File (java.io.File)1 StandardCharsets (java.nio.charset.StandardCharsets)1 java.nio.file (java.nio.file)1 Arrays (java.util.Arrays)1 HashSet (java.util.HashSet)1 Map (java.util.Map)1 Objects (java.util.Objects)1 Optional (java.util.Optional)1 QName (javax.xml.namespace.QName)1