Skip to content

Commit a9bf744

Browse files
committed
Fix Docker test configuration in spring-boot-data-couchbase-test
See gh-47322
1 parent b503ad3 commit a9bf744

File tree

9 files changed

+16
-37
lines changed

9 files changed

+16
-37
lines changed

module/spring-boot-data-couchbase-test/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
plugins {
1818
id "java-library"
1919
id "org.springframework.boot.deployed"
20+
id "org.springframework.boot.docker-test"
2021
id "org.springframework.boot.optional-dependencies"
2122
id "org.springframework.boot.test-slice"
2223
}
@@ -30,6 +31,14 @@ dependencies {
3031
optional(project(":core:spring-boot-testcontainers"))
3132
optional("org.junit.jupiter:junit-jupiter-api")
3233

34+
dockerTestImplementation(project(":core:spring-boot-testcontainers"))
35+
dockerTestImplementation(project(":test-support:spring-boot-docker-test-support"))
36+
dockerTestImplementation(testFixtures(project(":core:spring-boot-autoconfigure")))
37+
dockerTestImplementation("org.junit.jupiter:junit-jupiter")
38+
dockerTestImplementation("org.testcontainers:couchbase")
39+
dockerTestImplementation("org.testcontainers:junit-jupiter")
40+
dockerTestImplementation("org.testcontainers:testcontainers")
41+
3342
testImplementation(project(":test-support:spring-boot-test-support"))
3443

3544
testRuntimeOnly("ch.qos.logback:logback-classic")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.test.autoconfigure.data.couchbase;
17+
package org.springframework.boot.data.couchbase.test.autoconfigure;
1818

1919
import org.junit.jupiter.api.Test;
2020
import org.testcontainers.couchbase.BucketDefinition;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.test.autoconfigure.data.couchbase;
17+
package org.springframework.boot.data.couchbase.test.autoconfigure;
1818

1919
import java.time.Duration;
2020

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.test.autoconfigure.data.couchbase;
17+
package org.springframework.boot.data.couchbase.test.autoconfigure;
1818

1919
import org.junit.jupiter.api.Test;
2020
import org.testcontainers.couchbase.BucketDefinition;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.test.autoconfigure.data.couchbase;
17+
package org.springframework.boot.data.couchbase.test.autoconfigure;
1818

1919
import org.springframework.data.annotation.Id;
2020
import org.springframework.data.couchbase.core.mapping.Document;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.test.autoconfigure.data.couchbase;
17+
package org.springframework.boot.data.couchbase.test.autoconfigure;
1818

1919
import org.springframework.data.couchbase.repository.ReactiveCouchbaseRepository;
2020

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.test.autoconfigure.data.couchbase;
17+
package org.springframework.boot.data.couchbase.test.autoconfigure;
1818

1919
import org.springframework.data.couchbase.repository.CouchbaseRepository;
2020

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.test.autoconfigure.data.couchbase;
17+
package org.springframework.boot.data.couchbase.test.autoconfigure;
1818

1919
import org.springframework.data.couchbase.core.CouchbaseTemplate;
2020
import org.springframework.stereotype.Service;

module/spring-boot-data-couchbase-test/src/dockerTest/java/org/springframework/boot/test/autoconfigure/data/couchbase/ExampleCouchbaseApplication.java

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)