Class GraphqlTestHelper
java.lang.Object
com.graphql_java_generator.plugin.test.helper.GraphqlTestHelper
- Author:
- etienne-sf
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkSchemaStringProvider
(String patternToCheck) This method checks that theSchemaStringProvider
bean: Is an instance of ourSchemaStringProvider
, that is:MavenResourceSchemaStringProvider
Its file pattern end with the given pattern. e.g. : endsWith the filename for the graphql of this unit test like 'helloworld.graphqls'readSchema
(org.springframework.core.io.Resource resource)
-
Constructor Details
-
GraphqlTestHelper
public GraphqlTestHelper()
-
-
Method Details
-
readSchema
-
checkSchemaStringProvider
This method checks that theSchemaStringProvider
bean:- Is an instance of our
SchemaStringProvider
, that is:MavenResourceSchemaStringProvider
- Its file pattern end with the given pattern. e.g. : endsWith the filename for the graphql of this unit test like 'helloworld.graphqls'
- Parameters:
patternToCheck
- Typically, the file name that contains the graphql schema for this test.
- Is an instance of our
-