Class GraphqlTestHelper

java.lang.Object
com.graphql_java_generator.plugin.test.helper.GraphqlTestHelper

@Component public class GraphqlTestHelper extends Object
Author:
etienne-sf
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method checks that the SchemaStringProvider 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'
    readSchema(org.springframework.core.io.Resource resource)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GraphqlTestHelper

      public GraphqlTestHelper()
  • Method Details

    • readSchema

      public String readSchema(org.springframework.core.io.Resource resource)
    • checkSchemaStringProvider

      public void checkSchemaStringProvider(String patternToCheck)
      This method checks that the SchemaStringProvider 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.