-
Notifications
You must be signed in to change notification settings - Fork 655
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix NPE in checkCapitalizedFields (#4201)
Co-authored-by: Martin Bonnin <[email protected]> (cherry picked from commit e28f4a7)
- Loading branch information
Showing
4 changed files
with
9 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,5 @@ dependencies { | |
|
||
apollo { | ||
packageName.set("multimodule.child") | ||
} | ||
flattenModels.set(false) | ||
} |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# | ||
query GetLong2 { | ||
long2: long | ||
... QueryDetails | ||
} |
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
package test | ||
|
||
import multimodule.child.GetLong2Query | ||
import multimodule.root.fragment.QueryDetails | ||
import org.junit.Test | ||
import kotlin.test.assertIs | ||
|
||
class TestScalar { | ||
@Test | ||
fun testScalar() { | ||
val data = GetLong2Query.Data(0) | ||
val data = GetLong2Query.Data("", 0, QueryDetails(0)) | ||
assertIs<Long>(data.long2) | ||
} | ||
} | ||
} |