Skip to content

Commit d5d9573

Browse files
committed
Polishing contribution
Closes gh-734
1 parent f4c5003 commit d5d9573

12 files changed

+105
-11
lines changed

spring-graphql/src/test/java/org/springframework/graphql/data/query/jpa/BookJpaRepository.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2020-2023 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package org.springframework.graphql.data.query.jpa;
218

319
import org.springframework.data.jpa.repository.JpaRepository;

spring-graphql/src/test/java/org/springframework/graphql/data/query/jpa/QueryByExampleDataFetcherJpaTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@
4343
import org.springframework.graphql.ExecutionGraphQlResponse;
4444
import org.springframework.graphql.GraphQlSetup;
4545
import org.springframework.graphql.ResponseHelper;
46-
import org.springframework.graphql.data.pagination.ConnectionFieldTypeVisitor;
4746
import org.springframework.graphql.data.query.QueryByExampleDataFetcher;
4847
import org.springframework.graphql.data.query.ScrollPositionCursorStrategy;
4948
import org.springframework.graphql.data.query.ScrollSubrange;
5049
import org.springframework.graphql.data.query.WindowConnectionAdapter;
51-
import org.springframework.graphql.execution.ConnectionTypeDefinitionConfigurer;
5250
import org.springframework.graphql.execution.RuntimeWiringConfigurer;
5351
import org.springframework.graphql.server.WebGraphQlHandler;
5452
import org.springframework.graphql.server.WebGraphQlRequest;
@@ -67,7 +65,7 @@
6765
import static org.mockito.Mockito.when;
6866

6967
/**
70-
* Unit tests for {@link QueryByExampleDataFetcher}.
68+
* Integration tests for {@link QueryByExampleDataFetcher} with JPA repository.
7169
*/
7270
@SpringJUnitConfig
7371
class QueryByExampleDataFetcherJpaTests {

spring-graphql/src/test/java/org/springframework/graphql/data/query/mongo/BookMongoRepository.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2020-2023 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package org.springframework.graphql.data.query.mongo;
218

319
import org.springframework.data.mongodb.repository.MongoRepository;

spring-graphql/src/test/java/org/springframework/graphql/data/query/mongo/BookReactiveMongoRepository.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2020-2023 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package org.springframework.graphql.data.query.mongo;
218

319
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;

spring-graphql/src/test/java/org/springframework/graphql/data/query/mongo/QueryByExampleDataFetcherMongoDbTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
import static org.mockito.Mockito.when;
6666

6767
/**
68-
* Unit tests for {@link QueryByExampleDataFetcher}.
68+
* Integration tests for {@link QueryByExampleDataFetcher} with MongoDB repository.
6969
*/
7070
@SpringJUnitConfig
7171
@Testcontainers(disabledWithoutDocker = true)

spring-graphql/src/test/java/org/springframework/graphql/data/query/mongo/QueryByExampleDataFetcherReactiveMongoDbTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,10 @@
4444
import org.springframework.graphql.BookSource;
4545
import org.springframework.graphql.GraphQlSetup;
4646
import org.springframework.graphql.ResponseHelper;
47-
import org.springframework.graphql.data.pagination.ConnectionFieldTypeVisitor;
4847
import org.springframework.graphql.data.query.QueryByExampleDataFetcher;
4948
import org.springframework.graphql.data.query.ScrollPositionCursorStrategy;
5049
import org.springframework.graphql.data.query.ScrollSubrange;
5150
import org.springframework.graphql.data.query.WindowConnectionAdapter;
52-
import org.springframework.graphql.execution.ConnectionTypeDefinitionConfigurer;
5351
import org.springframework.graphql.execution.RuntimeWiringConfigurer;
5452
import org.springframework.graphql.server.WebGraphQlHandler;
5553
import org.springframework.graphql.server.WebGraphQlRequest;
@@ -61,7 +59,7 @@
6159
import static org.assertj.core.api.Assertions.assertThat;
6260

6361
/**
64-
* Unit tests for {@link QueryByExampleDataFetcher}.
62+
* Integration tests for {@link QueryByExampleDataFetcher} with reactive MongoDB repository.
6563
*/
6664
@SpringJUnitConfig
6765
@Testcontainers(disabledWithoutDocker = true)

spring-graphql/src/test/java/org/springframework/graphql/data/query/neo4j/Author.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2002-2023 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package org.springframework.graphql.data.query.neo4j;
218

319
import org.springframework.data.neo4j.core.schema.Id;

spring-graphql/src/test/java/org/springframework/graphql/data/query/neo4j/Book.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020-2021 the original author or authors.
2+
* Copyright 2020-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-graphql/src/test/java/org/springframework/graphql/data/query/neo4j/BookNeo4jRepository.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2002-2023 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package org.springframework.graphql.data.query.neo4j;
218

319
import org.springframework.data.neo4j.repository.Neo4jRepository;

spring-graphql/src/test/java/org/springframework/graphql/data/query/neo4j/BookReactiveNeo4jRepository.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2002-2023 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package org.springframework.graphql.data.query.neo4j;
218

319
import org.springframework.data.neo4j.repository.ReactiveNeo4jRepository;

0 commit comments

Comments
 (0)