Class AbstractCustomTemplateIntegrationTest
java.lang.Object
com.graphql_java_generator.plugin.compilation_tests.AbstractCustomTemplateIntegrationTest
public abstract class AbstractCustomTemplateIntegrationTest extends Object
Base integration test for Custom templates scenario Offers methods to assert customized code validation
- Author:
- ggomez
-
Field Summary
Fields Modifier and Type Field Description protected com.graphql_java_generator.plugin.Generator
codeGenerator
protected CompilationTestHelper
compilationTestHelper
protected org.springframework.context.support.AbstractApplicationContext
ctx
protected static String
CUSTOMIZED_CODE_FIRST_LINE
protected com.graphql_java_generator.plugin.DocumentParser
generateCodeDocumentParser
protected GraphqlTestHelper
graphqlTestHelper
protected MavenTestHelper
mavenTestHelper
-
Constructor Summary
Constructors Constructor Description AbstractCustomTemplateIntegrationTest(Class<?> springConfClass)
-
Method Summary
Modifier and Type Method Description protected 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:
- Constant Field Values
-
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
-
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
-
-