Skip to content

Commit 8f9daf8

Browse files
Update issue reference in tests.
Original Pull Request: #4964
1 parent 740a206 commit 8f9daf8

File tree

4 files changed

+22
-24
lines changed

4 files changed

+22
-24
lines changed

spring-data-mongodb/src/test/java/org/springframework/data/mongodb/repository/aot/MongoRepositoryMetadataTests.java

+11-12
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
*/
1616
package org.springframework.data.mongodb.repository.aot;
1717

18-
import static net.javacrumbs.jsonunit.assertj.JsonAssertions.*;
19-
import static org.assertj.core.api.Assertions.*;
20-
import static org.mockito.Mockito.*;
18+
import static net.javacrumbs.jsonunit.assertj.JsonAssertions.assertThatJson;
19+
import static org.assertj.core.api.Assertions.assertThat;
20+
import static org.mockito.Mockito.mock;
2121

2222
import example.aot.UserRepository;
2323

@@ -27,7 +27,6 @@
2727
import org.junit.jupiter.api.Disabled;
2828
import org.junit.jupiter.api.Test;
2929
import org.junit.jupiter.api.extension.ExtendWith;
30-
3130
import org.springframework.beans.factory.annotation.Autowired;
3231
import org.springframework.context.annotation.Bean;
3332
import org.springframework.context.annotation.Configuration;
@@ -63,7 +62,7 @@ MongoOperations mongoOperations() {
6362

6463
@Autowired AbstractApplicationContext context;
6564

66-
@Test // GH-3830
65+
@Test // GH-4964
6766
void shouldDocumentBase() throws IOException {
6867

6968
Resource resource = getResource();
@@ -79,7 +78,7 @@ void shouldDocumentBase() throws IOException {
7978
.containsEntry("type", "IMPERATIVE");
8079
}
8180

82-
@Test // GH-3830
81+
@Test // GH-4964
8382
void shouldDocumentDerivedQuery() throws IOException {
8483

8584
Resource resource = getResource();
@@ -93,7 +92,7 @@ void shouldDocumentDerivedQuery() throws IOException {
9392
.containsEntry("filter", "{'lastname':?0}");
9493
}
9594

96-
@Test // GH-3830
95+
@Test // GH-4964
9796
void shouldDocumentSortedQuery() throws IOException {
9897

9998
Resource resource = getResource();
@@ -109,7 +108,7 @@ void shouldDocumentSortedQuery() throws IOException {
109108
.containsEntry("sort", "{'username':{'$numberInt':'1'}}");
110109
}
111110

112-
@Test // GH-3830
111+
@Test // GH-4964
113112
void shouldDocumentPagedQuery() throws IOException {
114113

115114
Resource resource = getResource();
@@ -123,7 +122,7 @@ void shouldDocumentPagedQuery() throws IOException {
123122
.element(0).isObject().containsEntry("filter", "{'lastname':{'$regex':/^\\Q?0\\E/}}");
124123
}
125124

126-
@Test // GH-3830
125+
@Test // GH-4964
127126
@Disabled("No support for expressions yet")
128127
void shouldDocumentQueryWithExpression() throws IOException {
129128

@@ -138,7 +137,7 @@ void shouldDocumentQueryWithExpression() throws IOException {
138137
.first().isObject().containsEntry("query", "select u from User u where u.emailAddress = :__$synthetic$__1");
139138
}
140139

141-
@Test // GH-3830
140+
@Test // GH-4964
142141
void shouldDocumentAggregation() throws IOException {
143142

144143
Resource resource = getResource();
@@ -153,7 +152,7 @@ void shouldDocumentAggregation() throws IOException {
153152
"[{ '$match' : { 'last_name' : { '$ne' : null } } }, { '$project': { '_id' : '$last_name' } }]");
154153
}
155154

156-
@Test // GH-3830
155+
@Test // GH-4964
157156
void shouldDocumentPipelineUpdate() throws IOException {
158157

159158
Resource resource = getResource();
@@ -168,7 +167,7 @@ void shouldDocumentPipelineUpdate() throws IOException {
168167
"[{ '$set' : { 'visits' : { '$ifNull' : [ {'$add' : [ '$visits', ?1 ] }, ?1 ] } } }]");
169168
}
170169

171-
@Test // GH-3830
170+
@Test // GH-4964
172171
void shouldDocumentBaseFragment() throws IOException {
173172

174173
Resource resource = getResource();

spring-data-mongodb/src/test/java/org/springframework/data/mongodb/repository/aot/ReactiveAotContributionIntegrationTests.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
*/
1616
package org.springframework.data.mongodb.repository.aot;
1717

18-
import static net.javacrumbs.jsonunit.assertj.JsonAssertions.*;
19-
import static org.mockito.Mockito.*;
18+
import static net.javacrumbs.jsonunit.assertj.JsonAssertions.assertThatJson;
19+
import static org.mockito.Mockito.mock;
2020

2121
import example.aot.User;
2222
import reactor.core.publisher.Flux;
@@ -26,7 +26,6 @@
2626
import java.nio.charset.StandardCharsets;
2727

2828
import org.junit.jupiter.api.Test;
29-
3029
import org.springframework.aot.generate.GeneratedFiles;
3130
import org.springframework.aot.test.generate.TestGenerationContext;
3231
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
@@ -75,7 +74,7 @@ interface ReactiveQuerydslUserRepository
7574

7675
}
7776

78-
@Test // GH-3830
77+
@Test // GH-4964
7978
void shouldGenerateMetadataForBaseRepositoryAndQuerydslFragment() throws IOException {
8079

8180
TestGenerationContext generationContext = generate(AotConfiguration.class);

spring-data-mongodb/src/test/java/org/springframework/data/mongodb/repository/support/MongoRepositoryFragmentsContributorUnitTests.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
*/
1616
package org.springframework.data.mongodb.repository.support;
1717

18-
import static org.assertj.core.api.Assertions.*;
19-
import static org.mockito.Mockito.*;
18+
import static org.assertj.core.api.Assertions.assertThat;
19+
import static org.mockito.Mockito.mock;
20+
import static org.mockito.Mockito.when;
2021

2122
import java.util.Iterator;
2223

2324
import org.junit.jupiter.api.Test;
24-
2525
import org.springframework.data.mongodb.core.MongoOperations;
2626
import org.springframework.data.mongodb.core.convert.MappingMongoConverter;
2727
import org.springframework.data.mongodb.core.convert.NoOpDbRefResolver;
@@ -42,7 +42,7 @@
4242
*/
4343
class MongoRepositoryFragmentsContributorUnitTests {
4444

45-
@Test // GH-3279
45+
@Test // GH-4964
4646
void composedContributorShouldCreateFragments() {
4747

4848
MongoMappingContext mappingContext = new MongoMappingContext();

spring-data-mongodb/src/test/java/org/springframework/data/mongodb/repository/support/ReactiveMongoRepositoryFragmentsContributorUnitTests.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
*/
1616
package org.springframework.data.mongodb.repository.support;
1717

18-
import static org.assertj.core.api.Assertions.*;
19-
import static org.mockito.Mockito.*;
18+
import static org.assertj.core.api.Assertions.assertThat;
19+
import static org.mockito.Mockito.mock;
20+
import static org.mockito.Mockito.when;
2021

2122
import java.util.Iterator;
2223

2324
import org.junit.jupiter.api.Test;
24-
2525
import org.springframework.data.mongodb.core.ReactiveMongoOperations;
2626
import org.springframework.data.mongodb.core.convert.MappingMongoConverter;
2727
import org.springframework.data.mongodb.core.convert.NoOpDbRefResolver;
@@ -42,7 +42,7 @@
4242
*/
4343
class ReactiveMongoRepositoryFragmentsContributorUnitTests {
4444

45-
@Test // GH-3279
45+
@Test // GH-4964
4646
void composedContributorShouldCreateFragments() {
4747

4848
MongoMappingContext mappingContext = new MongoMappingContext();

0 commit comments

Comments
 (0)