Skip to content

Commit 6de47bd

Browse files
committed
Make test classes package private
See gh-1184
1 parent aa59d4b commit 6de47bd

File tree

68 files changed

+69
-69
lines changed

Some content is hidden

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

68 files changed

+69
-69
lines changed

Diff for: spring-graphql-test/src/test/java/org/springframework/graphql/test/tester/GraphQlTesterBuilderTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
*
4444
* @author Rossen Stoyanchev
4545
*/
46-
public class GraphQlTesterBuilderTests extends GraphQlTesterTestSupport {
46+
class GraphQlTesterBuilderTests extends GraphQlTesterTestSupport {
4747

4848
private static final String DOCUMENT = "{ Query }";
4949

Diff for: spring-graphql-test/src/test/java/org/springframework/graphql/test/tester/GraphQlTesterTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* @author Rossen Stoyanchev
4343
* @author Brian Clozel
4444
*/
45-
public class GraphQlTesterTests extends GraphQlTesterTestSupport {
45+
class GraphQlTesterTests extends GraphQlTesterTestSupport {
4646

4747
@Test
4848
void missingDocumentByName() {

Diff for: spring-graphql-test/src/test/java/org/springframework/graphql/test/tester/RSocketGraphQlTesterBuilderTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@
4848
import static org.assertj.core.api.Assertions.assertThat;
4949

5050
/**
51-
*
51+
* Tests for {@link RSocketGraphQlTester.Builder}.
5252
* @author Rossen Stoyanchev
5353
*/
54-
public class RSocketGraphQlTesterBuilderTests {
54+
class RSocketGraphQlTesterBuilderTests {
5555

5656
private static final String DOCUMENT = "{ Query }";
5757

Diff for: spring-graphql-test/src/test/java/org/springframework/graphql/test/tester/WebGraphQlTesterBuilderTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
*
6969
* @author Rossen Stoyanchev
7070
*/
71-
public class WebGraphQlTesterBuilderTests {
71+
class WebGraphQlTesterBuilderTests {
7272

7373
private static final String DOCUMENT = "{ Query }";
7474

Diff for: spring-graphql/src/main/java/org/springframework/graphql/execution/ErrorType.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ public enum ErrorType implements ErrorClassification {
5757
* {@link graphql.schema.DataFetcher} encountered an unexpected condition that
5858
* prevented it from fetching the data value.
5959
*/
60-
INTERNAL_ERROR;
60+
INTERNAL_ERROR
6161

6262
}

Diff for: spring-graphql/src/test/java/org/springframework/graphql/client/DefaultGraphQlClientResponseTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* Unit tests for {@link DefaultClientGraphQlResponse}.
4444
* @author Rossen Stoyanchev
4545
*/
46-
public class DefaultGraphQlClientResponseTests {
46+
class DefaultGraphQlClientResponseTests {
4747

4848
private static final ObjectMapper mapper = new ObjectMapper();
4949

Diff for: spring-graphql/src/test/java/org/springframework/graphql/client/GraphQlClientBuilderTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
*
3434
* @author Rossen Stoyanchev
3535
*/
36-
public class GraphQlClientBuilderTests extends GraphQlClientTestSupport {
36+
class GraphQlClientBuilderTests extends GraphQlClientTestSupport {
3737

3838
private static final String DOCUMENT = "{ Query }";
3939

Diff for: spring-graphql/src/test/java/org/springframework/graphql/client/GraphQlClientTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
*
4444
* @author Rossen Stoyanchev
4545
*/
46-
public class GraphQlClientTests extends GraphQlClientTestSupport {
46+
class GraphQlClientTests extends GraphQlClientTestSupport {
4747

4848
@Test
4949
void retrieveEntity() {

Diff for: spring-graphql/src/test/java/org/springframework/graphql/client/HttpGraphQlClientProtocolTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
*
4242
* @see <a href="https://graphql.github.io/graphql-over-http/draft/#sec-application-graphql-response-json">GraphQL over HTTP specification</a>
4343
*/
44-
public class HttpGraphQlClientProtocolTests {
44+
class HttpGraphQlClientProtocolTests {
4545

4646
private MockWebServer server;
4747

Diff for: spring-graphql/src/test/java/org/springframework/graphql/client/HttpSyncGraphQlClientBuilderTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
*
7070
* @author Rossen Stoyanchev
7171
*/
72-
public class HttpSyncGraphQlClientBuilderTests {
72+
class HttpSyncGraphQlClientBuilderTests {
7373

7474
private static final String DOCUMENT = "{ Query }";
7575

Diff for: spring-graphql/src/test/java/org/springframework/graphql/client/RSocketGraphQlClientBuilderTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
*
5252
* @author Rossen Stoyanchev
5353
*/
54-
public class RSocketGraphQlClientBuilderTests {
54+
class RSocketGraphQlClientBuilderTests {
5555

5656
private static final String DOCUMENT = "{ Query }";
5757

Diff for: spring-graphql/src/test/java/org/springframework/graphql/client/RSocketGraphQlTransportTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
*
4848
* @author Rossen Stoyanchev
4949
*/
50-
public class RSocketGraphQlTransportTests {
50+
class RSocketGraphQlTransportTests {
5151

5252
private static final Jackson2JsonEncoder jsonEncoder = new Jackson2JsonEncoder();
5353

Diff for: spring-graphql/src/test/java/org/springframework/graphql/client/WebGraphQlClientBuilderTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
*
7878
* @author Rossen Stoyanchev
7979
*/
80-
public class WebGraphQlClientBuilderTests {
80+
class WebGraphQlClientBuilderTests {
8181

8282
private static final String DOCUMENT = "{ Query }";
8383

Diff for: spring-graphql/src/test/java/org/springframework/graphql/client/WebSocketGraphQlTransportTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
*
5656
* @author Rossen Stoyanchev
5757
*/
58-
public class WebSocketGraphQlTransportTests {
58+
class WebSocketGraphQlTransportTests {
5959

6060
private static final Duration TIMEOUT = Duration.ofSeconds(5);
6161

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/federation/EntityMappingInvocationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
*
6363
* @author Rossen Stoyanchev
6464
*/
65-
public class EntityMappingInvocationTests {
65+
class EntityMappingInvocationTests {
6666

6767
private static final Resource federationSchema = new ClassPathResource("books/federation-schema.graphqls");
6868

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/method/annotation/support/AnnotatedControllerConfigurerInterfaceMappingTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* Tests for registration of mappings with schema interfaces types.
4343
* @author Rossen Stoyanchev
4444
*/
45-
public class AnnotatedControllerConfigurerInterfaceMappingTests {
45+
class AnnotatedControllerConfigurerInterfaceMappingTests {
4646

4747
private static final String SCHEMA = """
4848
type Query {

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/method/annotation/support/AnnotatedControllerConfigurerTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* @author Rossen Stoyanchev
3434
* @since 1.2.0
3535
*/
36-
public class AnnotatedControllerConfigurerTests {
36+
class AnnotatedControllerConfigurerTests {
3737

3838
@Test
3939
void customArgumentResolvers() {

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/method/annotation/support/AnnotatedControllerExceptionResolverTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
* @author Rossen Stoyanchev
5151
* @author Brian Clozel
5252
*/
53-
public class AnnotatedControllerExceptionResolverTests {
53+
class AnnotatedControllerExceptionResolverTests {
5454

5555
private final DataFetchingEnvironment environment =
5656
DataFetchingEnvironmentImpl.newDataFetchingEnvironment().build();

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/method/annotation/support/BatchMappingDetectionTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
* @author Rossen Stoyanchev
5555
*/
5656
@SuppressWarnings({"rawtypes", "unused"})
57-
public class BatchMappingDetectionTests {
57+
class BatchMappingDetectionTests {
5858

5959
private final BatchLoaderRegistry batchLoaderRegistry = new DefaultBatchLoaderRegistry();
6060

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/method/annotation/support/BatchMappingInvocationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
* @author Rossen Stoyanchev
5252
*/
5353
@SuppressWarnings("unused")
54-
public class BatchMappingInvocationTests extends BatchMappingTestSupport {
54+
class BatchMappingInvocationTests extends BatchMappingTestSupport {
5555

5656
private static Stream<Arguments> controllers() {
5757
return Stream.of(

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/method/annotation/support/BatchMappingPrincipalMethodArgumentResolverTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
*
5353
* @author Rossen Stoyanchev
5454
*/
55-
public class BatchMappingPrincipalMethodArgumentResolverTests extends BatchMappingTestSupport {
55+
class BatchMappingPrincipalMethodArgumentResolverTests extends BatchMappingTestSupport {
5656

5757
private final Authentication authentication = new TestingAuthenticationToken(new Object(), new Object());
5858

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/method/annotation/support/ContextValueMethodArgumentResolverTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
* Unit tests for {@link ContextValueMethodArgumentResolver}.
5252
* @author Rossen Stoyanchev
5353
*/
54-
public class ContextValueMethodArgumentResolverTests {
54+
class ContextValueMethodArgumentResolverTests {
5555

5656
private static final Method method = ClassUtils.getMethod(
5757
ContextValueMethodArgumentResolverTests.class, "handle", (Class<?>[]) null);

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/method/annotation/support/DataFetcherHandlerMethodTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
*
5050
* @author Rossen Stoyanchev
5151
*/
52-
public class DataFetcherHandlerMethodTests {
52+
class DataFetcherHandlerMethodTests {
5353

5454
@Test
5555
void annotatedMethodsOnInterface() {

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/method/annotation/support/DataFetchingEnvironmentArgumentResolverTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* Unit tests for {@link DataFetchingEnvironmentMethodArgumentResolver}.
3737
* @author Rossen Stoyanchev
3838
*/
39-
public class DataFetchingEnvironmentArgumentResolverTests {
39+
class DataFetchingEnvironmentArgumentResolverTests {
4040

4141
private static final Method handleMethod = ClassUtils.getMethod(
4242
DataFetchingEnvironmentArgumentResolverTests.class, "handle", (Class<?>[]) null);

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/method/annotation/support/DataLoaderArgumentResolverTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* Unit tests for {@link DataLoaderMethodArgumentResolver}.
4141
* @author Rossen Stoyanchev
4242
*/
43-
public class DataLoaderArgumentResolverTests {
43+
class DataLoaderArgumentResolverTests {
4444

4545
private static final Method method = ClassUtils.getMethod(
4646
DataLoaderArgumentResolverTests.class, "handle", (Class<?>[]) null);

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/method/annotation/support/LocalContextValueMethodArgumentResolverTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* Unit tests for {@link ContextValueMethodArgumentResolver}.
3939
* @author Rossen Stoyanchev
4040
*/
41-
public class LocalContextValueMethodArgumentResolverTests {
41+
class LocalContextValueMethodArgumentResolverTests {
4242

4343
private static final Method method = ClassUtils.getMethod(
4444
LocalContextValueMethodArgumentResolverTests.class, "handle", (Class<?>[]) null);

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/method/annotation/support/ProjectedPayloadMethodArgumentResolverTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* Unit tests for {@link ProjectedPayloadMethodArgumentResolver}.
3838
* @author Rossen Stoyanchev
3939
*/
40-
public class ProjectedPayloadMethodArgumentResolverTests extends ArgumentResolverTestSupport {
40+
class ProjectedPayloadMethodArgumentResolverTests extends ArgumentResolverTestSupport {
4141

4242
private ProjectedPayloadMethodArgumentResolver resolver;
4343

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/method/annotation/support/SchemaMappingDetectionTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
*
4747
* @author Rossen Stoyanchev
4848
*/
49-
public class SchemaMappingDetectionTests {
49+
class SchemaMappingDetectionTests {
5050

5151
@Test
5252
void registerWithDefaultCoordinates() {

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/method/annotation/support/SchemaMappingInvocationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* @author Rossen Stoyanchev
6767
* @author Mark Paluch
6868
*/
69-
public class SchemaMappingInvocationTests {
69+
class SchemaMappingInvocationTests {
7070

7171
@Test
7272
void queryWithScalarArgument() {

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/method/annotation/support/SchemaMappingPaginationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
* @author Rossen Stoyanchev
4545
* @author Oliver Drotbohm
4646
*/
47-
public class SchemaMappingPaginationTests {
47+
class SchemaMappingPaginationTests {
4848

4949

5050
@Test

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/method/annotation/support/SchemaMappingPrincipalMethodArgumentResolverTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
*
6262
* @author Rossen Stoyanchev
6363
*/
64-
public class SchemaMappingPrincipalMethodArgumentResolverTests {
64+
class SchemaMappingPrincipalMethodArgumentResolverTests {
6565

6666
private final PrincipalMethodArgumentResolver resolver = new PrincipalMethodArgumentResolver();
6767

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/method/annotation/support/SortMethodArgumentResolverTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*
3939
* @author Rossen Stoyanchev
4040
*/
41-
public class SortMethodArgumentResolverTests extends ArgumentResolverTestSupport {
41+
class SortMethodArgumentResolverTests extends ArgumentResolverTestSupport {
4242

4343
private final SortMethodArgumentResolver resolver = new SortMethodArgumentResolver(new MySortStrategy());
4444

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/method/annotation/support/SourceMethodArgumentResolverTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,6 @@ public String name(Format format) {
150150
}
151151

152152
enum Format {
153-
PAPERBACK, EBOOK;
153+
PAPERBACK, EBOOK
154154
}
155155
}

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/method/annotation/support/SubrangeMethodArgumentResolverTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* Unit tests for {@link SubrangeMethodArgumentResolver}.
3737
* @author Rossen Stoyanchev
3838
*/
39-
public class SubrangeMethodArgumentResolverTests extends ArgumentResolverTestSupport {
39+
class SubrangeMethodArgumentResolverTests extends ArgumentResolverTestSupport {
4040

4141
private final SubrangeMethodArgumentResolver<MyPosition> resolver =
4242
new SubrangeMethodArgumentResolver<>(new MyPositionCursorStrategy());

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/pagination/Base64CursorEncoderTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
* @author Rossen Stoyanchev
2727
*/
28-
public class Base64CursorEncoderTests {
28+
class Base64CursorEncoderTests {
2929

3030
private final Base64CursorEncoder encoder = new Base64CursorEncoder();
3131

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/pagination/ConnectionFieldTypeVisitorTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
*
6464
* @author Rossen Stoyanchev
6565
*/
66-
public class ConnectionFieldTypeVisitorTests {
66+
class ConnectionFieldTypeVisitorTests {
6767

6868

6969
@Test

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/query/JsonKeysetCursorStrategyTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
*
3434
* @author Rossen Stoyanchev
3535
*/
36-
public class JsonKeysetCursorStrategyTests {
36+
class JsonKeysetCursorStrategyTests {
3737

3838
private final JsonKeysetCursorStrategy cursorStrategy = new JsonKeysetCursorStrategy();
3939

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/query/PropertySelectionTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
*
3636
* @author Rossen Stoyanchev
3737
*/
38-
public class PropertySelectionTests {
38+
class PropertySelectionTests {
3939

4040
@Test
4141
void propertySelectionWithConnection() {

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/query/RepositoryUtilsTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* Unit tests for {@link RepositoryUtils}.
3535
*/
3636
@SuppressWarnings("OptionalGetWithoutIsPresent")
37-
public class RepositoryUtilsTests {
37+
class RepositoryUtilsTests {
3838

3939
private final CursorStrategy<ScrollPosition> cursorStrategy = RepositoryUtils.defaultCursorStrategy();
4040

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/query/ScrollPositionCursorStrategyTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* @author Rossen Stoyanchev
3232
* @author Oliver Drotbohm
3333
*/
34-
public class ScrollPositionCursorStrategyTests {
34+
class ScrollPositionCursorStrategyTests {
3535

3636
private final ScrollPositionCursorStrategy cursorStrategy = new ScrollPositionCursorStrategy();
3737

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/query/ScrollSubrangeTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* @author Rossen Stoyanchev
3535
* @author Oliver Drotbohm
3636
*/
37-
public class ScrollSubrangeTests {
37+
class ScrollSubrangeTests {
3838

3939
@Test
4040
void offsetForward() {

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/query/SliceConnectionAdapterTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
*
3434
* @author Rossen Stoyanchev
3535
*/
36-
public class SliceConnectionAdapterTests {
36+
class SliceConnectionAdapterTests {
3737

3838
private final SliceConnectionAdapter adapter = new SliceConnectionAdapter(new ScrollPositionCursorStrategy());
3939

Diff for: spring-graphql/src/test/java/org/springframework/graphql/data/query/WindowConnectionAdapterTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* @author Rossen Stoyanchev
3636
* @author Oliver Drotbohm
3737
*/
38-
public class WindowConnectionAdapterTests {
38+
class WindowConnectionAdapterTests {
3939

4040
private final WindowConnectionAdapter adapter = new WindowConnectionAdapter(new ScrollPositionCursorStrategy());
4141

Diff for: spring-graphql/src/test/java/org/springframework/graphql/execution/BatchLoadingTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
*
4343
* @author Rossen Stoyanchev
4444
*/
45-
public class BatchLoadingTests {
45+
class BatchLoadingTests {
4646

4747
private final BatchLoaderRegistry registry = new DefaultBatchLoaderRegistry();
4848

0 commit comments

Comments
 (0)