Class AbstractCustomTemplateIntegrationTest
java.lang.Object
com.graphql_java_generator.plugin.compilation_tests.AbstractCustomTemplateIntegrationTest
Base integration test for Custom templates scenario Offers methods to assert customized code validation
- Author:
- ggomez
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.graphql_java_generator.plugin.Generator
protected CompilationTestHelper
protected org.springframework.context.support.AbstractApplicationContext
protected static final String
protected com.graphql_java_generator.plugin.DocumentParser
protected GraphqlTestHelper
protected MavenTestHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
assertCustomTemplateGeneration
(File sourcesDirectory) Helper method that validates that given dir contains files generated with custom templates Custom template file are identified by it's first line.
-
Field Details
-
CUSTOMIZED_CODE_FIRST_LINE
- See Also:
-
ctx
protected org.springframework.context.support.AbstractApplicationContext ctx -
generateCodeDocumentParser
protected com.graphql_java_generator.plugin.DocumentParser generateCodeDocumentParser -
codeGenerator
protected com.graphql_java_generator.plugin.Generator codeGenerator -
compilationTestHelper
-
graphqlTestHelper
-
mavenTestHelper
-
-
Constructor Details
-
AbstractCustomTemplateIntegrationTest
-
-
Method Details
-
assertCustomTemplateGeneration
Helper method that validates that given dir contains files generated with custom templates Custom template file are identified by it's first line. It's value is \/** This template is custom **\/- Parameters:
generatedSourcesDir
-
-