Search in sources :

Example 6 with DevfileVersionDetector

use of org.eclipse.che.api.workspace.server.devfile.DevfileVersionDetector in project devspaces-images by redhat-developer.

the class DevfileSchemaValidatorTest method setUp.

@BeforeClass
public void setUp() {
    yamlMapper = new ObjectMapper(new YAMLFactory());
    schemaValidator = new DevfileSchemaValidator(new DevfileSchemaProvider(), new DevfileVersionDetector());
}
Also used : DevfileSchemaProvider(org.eclipse.che.api.workspace.server.devfile.schema.DevfileSchemaProvider) DevfileVersionDetector(org.eclipse.che.api.workspace.server.devfile.DevfileVersionDetector) YAMLFactory(com.fasterxml.jackson.dataformat.yaml.YAMLFactory) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

DevfileVersionDetector (org.eclipse.che.api.workspace.server.devfile.DevfileVersionDetector)6 HashMap (java.util.HashMap)4 DevfileParser (org.eclipse.che.api.workspace.server.devfile.DevfileParser)4 DevfileSchemaProvider (org.eclipse.che.api.workspace.server.devfile.schema.DevfileSchemaProvider)4 Test (org.testng.annotations.Test)4 JsonNode (com.fasterxml.jackson.databind.JsonNode)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)2 JsonNodeFactory (com.fasterxml.jackson.databind.node.JsonNodeFactory)2 ObjectNode (com.fasterxml.jackson.databind.node.ObjectNode)2 YAMLFactory (com.fasterxml.jackson.dataformat.yaml.YAMLFactory)2 IOException (java.io.IOException)2 Collections (java.util.Collections)2 Collections.emptyMap (java.util.Collections.emptyMap)2 Collections.singletonList (java.util.Collections.singletonList)2 Collections.singletonMap (java.util.Collections.singletonMap)2 List (java.util.List)2 Map (java.util.Map)2 Optional (java.util.Optional)2 ApiException (org.eclipse.che.api.core.ApiException)2 ServerException (org.eclipse.che.api.core.ServerException)2