We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a8c89f commit c082390Copy full SHA for c082390
apollo-gradle-plugin/src/test/kotlin/com/apollographql/apollo/gradle/test/ConfigurationTests.kt
@@ -28,6 +28,24 @@ class ConfigurationTests {
28
}
29
30
31
+ @Test
32
+ fun `customTypeMapping can be applied from a service block`() {
33
+ withSimpleProject("""
34
+ apollo {
35
+ service("other") {
36
+ schemaPath = "com/example/schema.json"
37
+ }
38
+ service("api") {
39
+ customTypeMapping = ["DateTime": "java.util.Date"]
40
41
42
43
+ """.trimIndent()) { dir ->
44
+ TestUtils.executeTask("generateApolloSources", dir)
45
+ TestUtils.assertFileContains(dir, "main/api/com/example/type/CustomType.java", "return Date.class;")
46
47
48
+
49
@Test
50
fun `nullableValueType is working`() {
51
for (pair in listOf(
0 commit comments