Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartisk committed Jan 5, 2023
1 parent 3934c2c commit c5ce2bb
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 37 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package io.smallrye.graphql.client.impl.core.utils;

import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertThrows;

import java.util.Date;
import java.util.Map;

import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.Test;

class ValueFormatterTest {

Expand All @@ -25,4 +25,4 @@ public void testUnsupportedInput() {
});
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
import java.math.BigDecimal;
import java.math.BigInteger;
import java.net.URISyntaxException;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;

import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -66,9 +64,9 @@ public void arraysTest() throws IOException, URISyntaxException {

prop("stringArray", new String[] { "foo", "bar", "baz" }),

prop("uuidArray", new UUID[]{UUID.fromString("fc4bb4f4-13fe-4908-8d6a-afa64f1b56c9"),
UUID.fromString("863c9e3c-7538-41b9-9d63-0852f6a50815")})
))),
prop("uuidArray",
new UUID[] { UUID.fromString("fc4bb4f4-13fe-4908-8d6a-afa64f1b56c9"),
UUID.fromString("863c9e3c-7538-41b9-9d63-0852f6a50815") })))),
field("boolPrimitiveArray"),
field("boolObjectArray"),

Expand Down Expand Up @@ -98,8 +96,7 @@ public void arraysTest() throws IOException, URISyntaxException {

field("stringArray"),

field("uuidArray")
)));
field("uuidArray"))));

String generatedRequest = document.build();
AssertGraphQL.assertEquivalentGraphQLRequest(expectedRequest, generatedRequest);
Expand Down
53 changes: 26 additions & 27 deletions client/tck/src/main/java/tck/graphql/dynamic/core/IterableTest.java
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
package tck.graphql.dynamic.core;

import io.smallrye.graphql.client.core.Document;
import org.junit.jupiter.api.Test;
import tck.graphql.dynamic.helper.AssertGraphQL;
import tck.graphql.dynamic.helper.Utils;

import java.io.IOException;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.net.URISyntaxException;
import java.util.List;
import java.util.Set;
import java.util.UUID;

import static io.smallrye.graphql.client.core.Argument.arg;
import static io.smallrye.graphql.client.core.Argument.args;
import static io.smallrye.graphql.client.core.Document.document;
Expand All @@ -22,6 +9,19 @@
import static io.smallrye.graphql.client.core.Operation.operation;
import static io.smallrye.graphql.client.core.OperationType.QUERY;

import java.io.IOException;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.net.URISyntaxException;
import java.util.List;
import java.util.UUID;

import org.junit.jupiter.api.Test;

import io.smallrye.graphql.client.core.Document;
import tck.graphql.dynamic.helper.AssertGraphQL;
import tck.graphql.dynamic.helper.Utils;

public class IterableTest {

@Test
Expand All @@ -36,31 +36,31 @@ public void iterableTest() throws IOException, URISyntaxException {

prop("boolObjectList", List.of(true, false)),

prop("byteObjectList", List.of( (byte)0, (byte)2, (byte)3)),
prop("byteObjectList", List.of((byte) 0, (byte) 2, (byte) 3)),

prop("shortObjectList", List.of( (short)78,(short) 789,(short) 645 )),
prop("shortObjectList", List.of((short) 78, (short) 789, (short) 645)),

prop("intObjectList", List.of( 78, 65, 12354 )),
prop("intObjectList", List.of(78, 65, 12354)),

prop("longObjectList", List.of( 789L, 947894L, 1874448L )),
prop("longObjectList", List.of(789L, 947894L, 1874448L)),

prop("floatObjectList", List.of( 1567.654f, 8765f, 123789456.1851f )),
prop("floatObjectList", List.of(1567.654f, 8765f, 123789456.1851f)),

prop("doubleObjectList", List.of( 789.3242d, 1815d, 98765421.654897d )),
prop("doubleObjectList", List.of(789.3242d, 1815d, 98765421.654897d)),

prop("bigIntegerList",
List.of( BigInteger.ZERO, BigInteger.ONE, BigInteger.TEN )),
List.of(BigInteger.ZERO, BigInteger.ONE, BigInteger.TEN)),

prop("bigDecimalList",
List.of( BigDecimal.ZERO, BigDecimal.ONE, BigDecimal.TEN )),
List.of(BigDecimal.ZERO, BigDecimal.ONE, BigDecimal.TEN)),

prop("charObjectList", List.of( 'f', 'o', 'o' )),
prop("charObjectList", List.of('f', 'o', 'o')),

prop("stringList", List.of( "foo", "bar", "baz" )),
prop("stringList", List.of("foo", "bar", "baz")),

prop("uuidList",
List.of(UUID.fromString("fc4bb4f4-13fe-4908-8d6a-afa64f1b56c9"),
UUID.fromString("863c9e3c-7538-41b9-9d63-0852f6a50815")))
List.of(UUID.fromString("fc4bb4f4-13fe-4908-8d6a-afa64f1b56c9"),
UUID.fromString("863c9e3c-7538-41b9-9d63-0852f6a50815")))

))),
field("boolObjectList"),
Expand All @@ -85,8 +85,7 @@ public void iterableTest() throws IOException, URISyntaxException {

field("stringList"),

field("uuidList")
)));
field("uuidList"))));

String generatedRequest = document.build();
AssertGraphQL.assertEquivalentGraphQLRequest(expectedRequest, generatedRequest);
Expand Down

0 comments on commit c5ce2bb

Please sign in to comment.