forked from Cox-Automotive/apollo-client-maven-plugin
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from rruizt/persistent-query-manifest
Make operation manifest format configurable
- Loading branch information
Showing
7 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
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
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
20 changes: 20 additions & 0 deletions
20
apollo-client-maven-plugin-tests/src/test/kotlin/OperationManifestTest.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.lahzouz.java.graphql.client.tests | ||
|
||
import org.junit.jupiter.api.Assertions.assertTrue | ||
import org.junit.jupiter.api.DisplayName | ||
import org.junit.jupiter.api.Test | ||
import java.nio.file.Files | ||
import java.nio.file.Paths | ||
import kotlin.io.path.exists | ||
|
||
class OperationManifestTest { | ||
|
||
@Test | ||
@DisplayName("Checks that operationManifest.json file has been generated and it's not empty") | ||
fun operationManifestTest() { | ||
val path = Paths.get("target/generated/operationOutput/apollo/books/operationOutput.json") | ||
|
||
assertTrue(path.exists(), "operationOutput.json was not generated by the plugin") | ||
assertTrue(Files.size(path) > 0, "File is empty") | ||
} | ||
} |
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
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
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
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