Search in sources :

Example 1 with ObjectGenerator

use of com.palantir.conjure.java.types.ObjectGenerator in project conjure-java by palantir.

the class UndertowServiceEteTest method beforeClass.

@BeforeAll
public static void beforeClass() throws IOException {
    ConjureDefinition def = Conjure.parse(ImmutableList.of(new File("src/test/resources/ete-service.yml"), new File("src/test/resources/ete-binary.yml"), new File("src/test/resources/alias-test-service.yml")));
    Options options = Options.builder().undertowServicePrefix(true).nonNullCollections(true).excludeEmptyOptionals(true).build();
    List<Path> files = new GenerationCoordinator(MoreExecutors.directExecutor(), ImmutableSet.of(new UndertowServiceGenerator(options), new ObjectGenerator(options))).emit(def, folder);
    validateGeneratorOutput(files, Paths.get("src/integrationInput/java/com/palantir/product"));
}
Also used : Path(java.nio.file.Path) UndertowOptions(io.undertow.UndertowOptions) ConjureDefinition(com.palantir.conjure.spec.ConjureDefinition) File(java.io.File) UndertowServiceGenerator(com.palantir.conjure.java.services.UndertowServiceGenerator) ObjectGenerator(com.palantir.conjure.java.types.ObjectGenerator) BeforeAll(org.junit.jupiter.api.BeforeAll)

Aggregations

UndertowServiceGenerator (com.palantir.conjure.java.services.UndertowServiceGenerator)1 ObjectGenerator (com.palantir.conjure.java.types.ObjectGenerator)1 ConjureDefinition (com.palantir.conjure.spec.ConjureDefinition)1 UndertowOptions (io.undertow.UndertowOptions)1 File (java.io.File)1 Path (java.nio.file.Path)1 BeforeAll (org.junit.jupiter.api.BeforeAll)1