@@ -23,7 +23,7 @@ void managedVertx() {
23
23
adb .shutdown ();
24
24
25
25
assertThat (logs .getLogs ())
26
- .filteredOn (it -> it .getLoggerName ().equals ("com.arangodb.http.HttpConnectionFactory " ))
26
+ .filteredOn (it -> it .getLoggerName ().equals ("com.arangodb.http.HttpConnection " ))
27
27
.map (ILoggingEvent ::getFormattedMessage )
28
28
.anySatisfy (it -> assertThat (it ).contains ("Creating new Vert.x instance" ))
29
29
.anySatisfy (it -> assertThat (it ).contains ("Closing Vert.x instance" ));
@@ -45,7 +45,7 @@ void reuseVertx() throws ExecutionException, InterruptedException {
45
45
vertx .close ();
46
46
47
47
assertThat (logs .getLogs ())
48
- .filteredOn (it -> it .getLoggerName ().equals ("com.arangodb.http.HttpConnectionFactory " ))
48
+ .filteredOn (it -> it .getLoggerName ().equals ("com.arangodb.http.HttpConnection " ))
49
49
.map (ILoggingEvent ::getFormattedMessage )
50
50
.anySatisfy (it -> assertThat (it ).contains ("Reusing existing Vert.x instance" ));
51
51
}
@@ -68,7 +68,10 @@ void notReuseVertx() throws ExecutionException, InterruptedException {
68
68
assertThat (logs .getLogs ())
69
69
.filteredOn (it -> it .getLoggerName ().equals ("com.arangodb.http.HttpConnectionFactory" ))
70
70
.map (ILoggingEvent ::getFormattedMessage )
71
- .anySatisfy (it -> assertThat (it ).contains ("Found an existing Vert.x instance, set reuseVertx=true to reuse it" ))
71
+ .anySatisfy (it -> assertThat (it ).contains ("Found an existing Vert.x instance, set reuseVertx=true to reuse it" ));
72
+ assertThat (logs .getLogs ())
73
+ .filteredOn (it -> it .getLoggerName ().equals ("com.arangodb.http.HttpConnection" ))
74
+ .map (ILoggingEvent ::getFormattedMessage )
72
75
.anySatisfy (it -> assertThat (it ).contains ("Creating new Vert.x instance" ))
73
76
.anySatisfy (it -> assertThat (it ).contains ("Closing Vert.x instance" ));
74
77
}
0 commit comments