Last active
February 2, 2021 20:27
-
-
Save paulbakker/6224cd7f3318f375f2a7993ec869cfd5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SpringBootTest(classes = {DgsAutoConfiguration.class, ShowsDatafetcher.class}) | |
class ShowsDatafetcherTest { | |
@Autowired | |
DgsQueryExecutor dgsQueryExecutor; | |
@Test | |
void shows() { | |
List<String> titles = dgsQueryExecutor.executeAndExtractJsonPath( | |
" { shows { title releaseYear }}", | |
"data.shows[*].title"); | |
assertThat(titles).contains("Ozark"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment