CausewayViewerGraphqlIntegTestAbstract
Intended as a base class for integration testing.
Subclass and Import the Spring org.springframework.context.annotation.Configuration s (modules) that hold the domain model.
Write tests as queries with a ..gql
suffix (or specify a different suffix through the constructor). Then override the _#each() method trivially:
_@_ TestFactory public Iterable each() throws IOException, URISyntaxException { return super.each(); }
The class will use Approvals approval tests to assert the returned response is correct.