Skip to content

Commit 9200fea

Browse files
committed
fix: polish tests
1 parent 2728500 commit 9200fea

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

graphql-jpa-query-schema/src/test/java/com/introproventures/graphql/jpa/query/converter/GraphQLJpaConverterTests.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,8 @@
3636
import com.introproventures.graphql.jpa.query.converter.model.VariableValue;
3737
import com.introproventures.graphql.jpa.query.schema.GraphQLExecutor;
3838
import com.introproventures.graphql.jpa.query.schema.GraphQLSchemaBuilder;
39-
import com.introproventures.graphql.jpa.query.schema.JavaScalars;
40-
import com.introproventures.graphql.jpa.query.schema.JavaScalars.GraphQLObjectCoercing;
4139
import com.introproventures.graphql.jpa.query.schema.impl.GraphQLJpaExecutor;
4240
import com.introproventures.graphql.jpa.query.schema.impl.GraphQLJpaSchemaBuilder;
43-
import graphql.schema.GraphQLScalarType;
4441
import org.junit.Test;
4542
import org.junit.runner.RunWith;
4643
import org.springframework.beans.factory.annotation.Autowired;
@@ -67,12 +64,9 @@ public GraphQLExecutor graphQLExecutor(final GraphQLSchemaBuilder graphQLSchemaB
6764

6865
@Bean
6966
public GraphQLSchemaBuilder graphQLSchemaBuilder(final EntityManager entityManager) {
70-
JavaScalars.register(JsonNode.class, new GraphQLScalarType("Json", "Json type", new GraphQLObjectCoercing()));
71-
JavaScalars.register(VariableValue.class, new GraphQLScalarType("VariableValue", "VariableValue Type", new GraphQLObjectCoercing()));
72-
7367
return new GraphQLJpaSchemaBuilder(entityManager)
74-
.name("HashMapSchema")
75-
.description("Json Entity test schema");
68+
.name("CustomAttributeConverterSchema")
69+
.description("Custom Attribute Converter Schema");
7670
}
7771

7872
}

0 commit comments

Comments
 (0)