Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<vertx.version>4.5.10</vertx.version>
<apis.bom.version>3.4.1</apis.bom.version>
</properties>

<groupId>jp.co.sony.csl.dcoes.apis</groupId>
Expand All @@ -17,7 +18,7 @@
<dependency>
<groupId>jp.co.sony.csl.dcoes.apis</groupId>
<artifactId>apis-bom</artifactId>
<version>${project.version}</version>
<version>${apis.bom.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.logging.Level;
import java.util.logging.LogRecord;

import org.junit.After;
import org.junit.Test;
import org.junit.runner.RunWith;

Expand All @@ -17,6 +18,10 @@ public ApisLoggerFormatterTest() {
super();
}

@After public void after() {
VertxConfig.config.setJsonObject(null);
}

@Test public void nullProgramId(TestContext context) {
VertxConfig.config.setJsonObject(null);
LogRecord record = new LogRecord(Level.INFO, "test message");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ public FileSystemExclusiveLockUtilTest() {
vertx = Vertx.vertx();
}
@After public void after(TestContext context) {
vertx.close();
if (vertx != null) {
vertx.close(context.asyncAssertSuccess());
}
}

@Test public void once(TestContext context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public LocalExclusiveLockTest() {
vertx = Vertx.vertx();
}
@After public void after(TestContext context) {
vertx.close();
if (vertx != null) {
vertx.close(context.asyncAssertSuccess());
}
}

@Test public void releaseTwice(TestContext context) {
Expand Down Expand Up @@ -116,10 +118,10 @@ public LocalExclusiveLockTest() {
if (res.succeeded()) {
LocalExclusiveLock.Lock result = res.result();
System.out.println("lock acquired");
vertx.setTimer(13000L, v -> {
vertx.setTimer(200L, v -> {
result.release();
System.out.println("lock released");
vertx.setTimer(5000L, vv -> {
vertx.setTimer(100L, vv -> {
System.out.println("done");
async.complete();
});
Expand Down