Update issue reference in tests.

Original Pull Request: #4964
This commit is contained in:
Christoph Strobl
2025-05-09 09:29:29 +02:00
committed by Mark Paluch
parent 5d4b8d8230
commit b2d9547b71
4 changed files with 22 additions and 24 deletions

View File

@@ -15,9 +15,9 @@
*/
package org.springframework.data.mongodb.repository.aot;
import static net.javacrumbs.jsonunit.assertj.JsonAssertions.*;
import static org.assertj.core.api.Assertions.*;
import static org.mockito.Mockito.*;
import static net.javacrumbs.jsonunit.assertj.JsonAssertions.assertThatJson;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
import example.aot.UserRepository;
@@ -27,7 +27,6 @@ import java.nio.charset.StandardCharsets;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@@ -63,7 +62,7 @@ class MongoRepositoryMetadataTests {
@Autowired AbstractApplicationContext context;
@Test // GH-3830
@Test // GH-4964
void shouldDocumentBase() throws IOException {
Resource resource = getResource();
@@ -79,7 +78,7 @@ class MongoRepositoryMetadataTests {
.containsEntry("type", "IMPERATIVE");
}
@Test // GH-3830
@Test // GH-4964
void shouldDocumentDerivedQuery() throws IOException {
Resource resource = getResource();
@@ -93,7 +92,7 @@ class MongoRepositoryMetadataTests {
.containsEntry("filter", "{'lastname':?0}");
}
@Test // GH-3830
@Test // GH-4964
void shouldDocumentSortedQuery() throws IOException {
Resource resource = getResource();
@@ -109,7 +108,7 @@ class MongoRepositoryMetadataTests {
.containsEntry("sort", "{'username':{'$numberInt':'1'}}");
}
@Test // GH-3830
@Test // GH-4964
void shouldDocumentPagedQuery() throws IOException {
Resource resource = getResource();
@@ -123,7 +122,7 @@ class MongoRepositoryMetadataTests {
.element(0).isObject().containsEntry("filter", "{'lastname':{'$regex':/^\\Q?0\\E/}}");
}
@Test // GH-3830
@Test // GH-4964
@Disabled("No support for expressions yet")
void shouldDocumentQueryWithExpression() throws IOException {
@@ -138,7 +137,7 @@ class MongoRepositoryMetadataTests {
.first().isObject().containsEntry("query", "select u from User u where u.emailAddress = :__$synthetic$__1");
}
@Test // GH-3830
@Test // GH-4964
void shouldDocumentAggregation() throws IOException {
Resource resource = getResource();
@@ -153,7 +152,7 @@ class MongoRepositoryMetadataTests {
"[{ '$match' : { 'last_name' : { '$ne' : null } } }, { '$project': { '_id' : '$last_name' } }]");
}
@Test // GH-3830
@Test // GH-4964
void shouldDocumentPipelineUpdate() throws IOException {
Resource resource = getResource();
@@ -168,7 +167,7 @@ class MongoRepositoryMetadataTests {
"[{ '$set' : { 'visits' : { '$ifNull' : [ {'$add' : [ '$visits', ?1 ] }, ?1 ] } } }]");
}
@Test // GH-3830
@Test // GH-4964
void shouldDocumentBaseFragment() throws IOException {
Resource resource = getResource();

View File

@@ -15,8 +15,8 @@
*/
package org.springframework.data.mongodb.repository.aot;
import static net.javacrumbs.jsonunit.assertj.JsonAssertions.*;
import static org.mockito.Mockito.*;
import static net.javacrumbs.jsonunit.assertj.JsonAssertions.assertThatJson;
import static org.mockito.Mockito.mock;
import example.aot.User;
import reactor.core.publisher.Flux;
@@ -26,7 +26,6 @@ import java.io.IOException;
import java.nio.charset.StandardCharsets;
import org.junit.jupiter.api.Test;
import org.springframework.aot.generate.GeneratedFiles;
import org.springframework.aot.test.generate.TestGenerationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
@@ -75,7 +74,7 @@ class ReactiveAotContributionIntegrationTests {
}
@Test // GH-3830
@Test // GH-4964
void shouldGenerateMetadataForBaseRepositoryAndQuerydslFragment() throws IOException {
TestGenerationContext generationContext = generate(AotConfiguration.class);

View File

@@ -15,13 +15,13 @@
*/
package org.springframework.data.mongodb.repository.support;
import static org.assertj.core.api.Assertions.*;
import static org.mockito.Mockito.*;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.util.Iterator;
import org.junit.jupiter.api.Test;
import org.springframework.data.mongodb.core.MongoOperations;
import org.springframework.data.mongodb.core.convert.MappingMongoConverter;
import org.springframework.data.mongodb.core.convert.NoOpDbRefResolver;
@@ -42,7 +42,7 @@ import org.springframework.data.repository.core.support.RepositoryFragment;
*/
class MongoRepositoryFragmentsContributorUnitTests {
@Test // GH-3279
@Test // GH-4964
void composedContributorShouldCreateFragments() {
MongoMappingContext mappingContext = new MongoMappingContext();

View File

@@ -15,13 +15,13 @@
*/
package org.springframework.data.mongodb.repository.support;
import static org.assertj.core.api.Assertions.*;
import static org.mockito.Mockito.*;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.util.Iterator;
import org.junit.jupiter.api.Test;
import org.springframework.data.mongodb.core.ReactiveMongoOperations;
import org.springframework.data.mongodb.core.convert.MappingMongoConverter;
import org.springframework.data.mongodb.core.convert.NoOpDbRefResolver;
@@ -42,7 +42,7 @@ import org.springframework.data.repository.core.support.RepositoryFragment;
*/
class ReactiveMongoRepositoryFragmentsContributorUnitTests {
@Test // GH-3279
@Test // GH-4964
void composedContributorShouldCreateFragments() {
MongoMappingContext mappingContext = new MongoMappingContext();