Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 7977f8e

Browse files
committed
Fix sonar issues
1 parent 3ae1db5 commit 7977f8e

File tree

52 files changed

+286
-264
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+286
-264
lines changed

graphql-spring-boot-test-autoconfigure/src/test/java/com/graphql/spring/boot/test/GraphQLTestSubscriptionAutoConfigurationCustomConfigTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
@ActiveProfiles({"test", "custom-subscription-path"})
1111
@DisplayName("Testing the auto-configuration of the GraphQLTestSubscription bean / custom subscription endpoint.")
12-
public class GraphQLTestSubscriptionAutoConfigurationCustomConfigTest extends
12+
class GraphQLTestSubscriptionAutoConfigurationCustomConfigTest extends
1313
GraphQLTestAutoConfigurationTestBase {
1414

1515
@Test

graphql-spring-boot-test-autoconfigure/src/test/java/com/graphql/spring/boot/test/GraphQLTestSubscriptionAutoConfigurationDefaultConfigTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import org.junit.jupiter.api.Test;
55

66
@DisplayName("Testing the auto-configuration of the GraphQLTestSubscription bean / default settings.")
7-
public class GraphQLTestSubscriptionAutoConfigurationDefaultConfigTest extends
7+
class GraphQLTestSubscriptionAutoConfigurationDefaultConfigTest extends
88
GraphQLTestAutoConfigurationTestBase {
99

1010
@Test

graphql-spring-boot-test-autoconfigure/src/test/java/com/graphql/spring/boot/test/GraphQLTestTemplateAutoConfigurationCustomConfigTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
@ActiveProfiles({"test", "custom-servlet-mapping"})
1212
@DisplayName("Testing auto-configuration of the GraphQLTestTemplate bean / custom servlet endpoint.")
13-
public class GraphQLTestTemplateAutoConfigurationCustomConfigTest extends
13+
class GraphQLTestTemplateAutoConfigurationCustomConfigTest extends
1414
GraphQLTestAutoConfigurationTestBase {
1515

1616
@Test

graphql-spring-boot-test-autoconfigure/src/test/java/com/graphql/spring/boot/test/GraphQLTestTemplateAutoConfigurationDefaultConfigTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import org.junit.jupiter.api.Test;
66

77
@DisplayName("Testing auto-configuration of the GraphQLTestTemplate bean / default servlet endpoint.")
8-
public class GraphQLTestTemplateAutoConfigurationDefaultConfigTest extends
8+
class GraphQLTestTemplateAutoConfigurationDefaultConfigTest extends
99
GraphQLTestAutoConfigurationTestBase {
1010

1111
@Test

graphql-spring-boot-test/src/main/java/com/graphql/spring/boot/test/GraphQLTestSubscription.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import javax.websocket.ClientEndpointConfig;
2424
import javax.websocket.CloseReason;
2525
import javax.websocket.ContainerProvider;
26+
import javax.websocket.DeploymentException;
2627
import javax.websocket.Endpoint;
2728
import javax.websocket.EndpointConfig;
2829
import javax.websocket.MessageHandler;
@@ -377,7 +378,7 @@ public List<GraphQLResponse> getRemainingResponses() {
377378
return graphQLResponses;
378379
}
379380

380-
private void initClient() throws Exception {
381+
private void initClient() throws IOException, DeploymentException {
381382
final String port = environment.getProperty("local.server.port");
382383
final URI uri = URI_BUILDER_FACTORY.builder().scheme("ws").host("localhost").port(port)
383384
.path(subscriptionPath)

graphql-spring-boot-test/src/main/java/com/graphql/spring/boot/test/RequestFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ private RequestFactory() {
1212
}
1313

1414
static HttpEntity<Object> forJson(String json, HttpHeaders headers) {
15-
headers.setContentType(MediaType.APPLICATION_JSON_UTF8);
15+
headers.setContentType(MediaType.APPLICATION_JSON);
1616
return new HttpEntity<>(json, headers);
1717
}
1818

graphql-spring-boot-test/src/main/java/com/graphql/spring/boot/test/assertions/GraphQLBigDecimalAssert.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
import com.graphql.spring.boot.test.GraphQLResponse;
44
import java.math.BigDecimal;
5+
import lombok.EqualsAndHashCode;
56
import org.assertj.core.api.AbstractBigDecimalAssert;
67

8+
@EqualsAndHashCode(callSuper = true)
79
public class GraphQLBigDecimalAssert extends AbstractBigDecimalAssert<GraphQLBigDecimalAssert>
810
implements GraphQLResponseAssertion {
911

graphql-spring-boot-test/src/main/java/com/graphql/spring/boot/test/assertions/GraphQLBigIntegerAssert.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
import com.graphql.spring.boot.test.GraphQLResponse;
44
import java.math.BigInteger;
5+
import lombok.EqualsAndHashCode;
56
import org.assertj.core.api.AbstractBigIntegerAssert;
67

8+
@EqualsAndHashCode(callSuper = true)
79
public class GraphQLBigIntegerAssert extends AbstractBigIntegerAssert<GraphQLBigIntegerAssert>
810
implements GraphQLResponseAssertion {
911

graphql-spring-boot-test/src/main/java/com/graphql/spring/boot/test/assertions/GraphQLBooleanAssert.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
package com.graphql.spring.boot.test.assertions;
22

33
import com.graphql.spring.boot.test.GraphQLResponse;
4+
import lombok.EqualsAndHashCode;
45
import org.assertj.core.api.AbstractBooleanAssert;
56

7+
@EqualsAndHashCode(callSuper = true)
68
public class GraphQLBooleanAssert extends AbstractBooleanAssert<GraphQLBooleanAssert>
79
implements GraphQLResponseAssertion {
810

graphql-spring-boot-test/src/main/java/com/graphql/spring/boot/test/assertions/GraphQLByteAssert.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
package com.graphql.spring.boot.test.assertions;
22

33
import com.graphql.spring.boot.test.GraphQLResponse;
4+
import lombok.EqualsAndHashCode;
45
import org.assertj.core.api.AbstractByteAssert;
56

7+
@EqualsAndHashCode(callSuper = true)
68
public class GraphQLByteAssert extends AbstractByteAssert<GraphQLByteAssert>
79
implements GraphQLResponseAssertion {
810

0 commit comments

Comments
 (0)