Polish "Add DataCouchbaseTest annotation"
See gh-29912
This commit is contained in:
@@ -37,11 +37,11 @@ import org.springframework.test.context.BootstrapWith;
|
||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
|
||||
/**
|
||||
* Annotation that can be used for a Couchbase test that focuses <strong>only</strong> on
|
||||
* Couchbase components.
|
||||
* Annotation that can be used for a Data Couchbase test that focuses
|
||||
* <strong>only</strong> on Data Couchbase components.
|
||||
* <p>
|
||||
* Using this annotation will disable full auto-configuration and instead apply only
|
||||
* configuration relevant to Couchbase tests.
|
||||
* configuration relevant to Data Couchbase tests.
|
||||
* <p>
|
||||
* When using JUnit 4, this annotation should be used in combination with
|
||||
* {@code @RunWith(SpringRunner.class)}.
|
||||
|
||||
@@ -26,7 +26,6 @@ import org.testcontainers.junit.jupiter.Testcontainers;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.testsupport.testcontainers.DockerImageNames;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.data.couchbase.core.ReactiveCouchbaseTemplate;
|
||||
import org.springframework.test.context.DynamicPropertyRegistry;
|
||||
import org.springframework.test.context.DynamicPropertySource;
|
||||
@@ -64,9 +63,6 @@ class DataCouchbaseTestReactiveIntegrationTests {
|
||||
@Autowired
|
||||
private ExampleReactiveRepository exampleReactiveRepository;
|
||||
|
||||
@Autowired
|
||||
private ApplicationContext applicationContext;
|
||||
|
||||
@Test
|
||||
void testRepository() {
|
||||
ExampleDocument document = new ExampleDocument();
|
||||
|
||||
Reference in New Issue
Block a user