Skip to content

Commit

Permalink
chore: clean codes
Browse files Browse the repository at this point in the history
  • Loading branch information
hantsy committed Dec 4, 2024
1 parent d8280a3 commit ce78ad1
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 146 deletions.
5 changes: 5 additions & 0 deletions boot-data-couchbase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
<artifactId>reactor-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-testcontainers</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>junit-jupiter</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,17 @@ class PostRepositoryTest {

static class TestContainerInitializer implements ApplicationContextInitializer<ConfigurableApplicationContext> {
private static final String COUCHBASE_IMAGE_NAME = "couchbase";
private static final String DEFAULT_IMAGE_NAME = "couchbase/server:6";
private static final String DEFAULT_IMAGE_NAME = "couchbase/server:7";
private static final DockerImageName DEFAULT_IMAGE = DockerImageName.parse(COUCHBASE_IMAGE_NAME)
.asCompatibleSubstituteFor(DEFAULT_IMAGE_NAME);

@Override
public void initialize(ConfigurableApplicationContext configurableApplicationContext) {
final CouchbaseContainer couchbaseContainer = new CouchbaseContainer(DEFAULT_IMAGE)
.withCredentials("Administrator", "password")
.withBucket(new BucketDefinition("demo").withPrimaryIndex(true))
.withBucket(new BucketDefinition("demo")
.withPrimaryIndex(true)
)
.withStartupTimeout(Duration.ofSeconds(60));

couchbaseContainer.start();
Expand Down Expand Up @@ -74,7 +76,8 @@ public void setup() {
)
.subscribe(data -> {
log.debug("saved data: {}", data);
countDownLatch.countDown();;
countDownLatch.countDown();
;
});
countDownLatch.await(1000, java.util.concurrent.TimeUnit.MILLISECONDS);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static class TestConfig {
}

private static final String COUCHBASE_IMAGE_NAME = "couchbase";
private static final String DEFAULT_IMAGE_NAME = "couchbase/server:6";
private static final String DEFAULT_IMAGE_NAME = "couchbase/server:7";
private static final DockerImageName DEFAULT_IMAGE = DockerImageName.parse(COUCHBASE_IMAGE_NAME)
.asCompatibleSubstituteFor(DEFAULT_IMAGE_NAME);

Expand Down
46 changes: 0 additions & 46 deletions session-data-mongo/nbactions.xml

This file was deleted.

5 changes: 4 additions & 1 deletion session-data-mongo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,16 @@
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/htmlunit-driver -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>htmlunit-driver</artifactId>
<version>4.13.0</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>net.sourceforge.htmlunit</groupId>
<groupId>org.htmlunit</groupId>
<artifactId>htmlunit</artifactId>
<scope>test</scope>
</dependency>
Expand Down
46 changes: 0 additions & 46 deletions session-data-redis/nbactions.xml

This file was deleted.

5 changes: 4 additions & 1 deletion session-data-redis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,16 @@
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/htmlunit-driver -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>htmlunit-driver</artifactId>
<version>4.13.0</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>net.sourceforge.htmlunit</groupId>
<groupId>org.htmlunit</groupId>
<artifactId>htmlunit</artifactId>
<scope>test</scope>
</dependency>
Expand Down
46 changes: 0 additions & 46 deletions session/nbactions.xml

This file was deleted.

6 changes: 4 additions & 2 deletions session/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,15 @@
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/htmlunit-driver -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>htmlunit-driver</artifactId>
<scope>test</scope>
<version>4.13.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.htmlunit/htmlunit -->
<dependency>
<groupId>net.sourceforge.htmlunit</groupId>
<groupId>org.htmlunit</groupId>
<artifactId>htmlunit</artifactId>
<scope>test</scope>
</dependency>
Expand Down

0 comments on commit ce78ad1

Please sign in to comment.