Skip to content

Commit 72a105e

Browse files
committed
remove unnecessary test
1 parent 5189d2b commit 72a105e

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

src/test/java/graphql/annotations/GraphQLObjectTest.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,6 @@ public void setZ(String z) {
126126
this.z = z;
127127
}
128128

129-
@GraphQLField
130-
@GraphQLInvokeDetached
131-
public Integer doubleToInt(@GraphQLNonNull @GraphQLName("data") Double data) {
132-
return data.intValue();
133-
}
134129
}
135130

136131
private static class TestDefaults {
@@ -179,17 +174,6 @@ public TestObjectDB get(DataFetchingEnvironment environment) {
179174
}
180175
}
181176

182-
@Test
183-
public void doubleIntQuery() {
184-
GraphQLSchema schema = newSchema().query(GraphQLAnnotations.object(TestObject.class)).build();
185-
GraphQL graphQL = GraphQL.newGraphQL(schema).build();
186-
ExecutionResult result = graphQL.execute("{ doubleToInt ( data:15.0 ) }");
187-
assertTrue(result.getErrors().isEmpty());
188-
assertEquals(((Map<String, Integer>) result.getData()).get("doubleToInt"), Integer.valueOf(15));
189-
}
190-
191-
192-
193177
@Test
194178
public void fetchTestMappedObject_assertNameIsMappedFromDBObject(){
195179
GraphQLObjectType object = GraphQLAnnotations.object(TestQuery.class);

src/test/java/graphql/annotations/processor/typeFunctions/FloatFunctionTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ public void init() {
3232
@Test
3333
public void buildType_floatType_returnsGraphQLFloat() {
3434
DefaultTypeFunction instance = testedDefaultTypeFunction();
35-
assertEquals(instance.buildType(float.class, null,null), GraphQLFloat);
36-
assertEquals(instance.buildType(Float.class, null,null), GraphQLFloat);
3735
assertEquals(instance.buildType(Double.class, null,null), GraphQLFloat);
3836
assertEquals(instance.buildType(double.class, null,null), GraphQLFloat);
3937
}

0 commit comments

Comments
 (0)