Class GraphqlTestHelper
java.lang.Object
com.graphql_java_generator.plugin.test.helper.GraphqlTestHelper
- Author:
- etienne-sf
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckSchemaStringProvider(String patternToCheck) This method checks that theSchemaStringProviderbean: Is an instance of ourSchemaStringProvider, that is:MavenResourceSchemaStringProviderIts 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 theSchemaStringProviderbean:- 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
-