File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed
src/test/java/io/github/springwolf/examples/jms Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,12 @@ export function verifyNoErrorLogs(dockerLogs: MonitorDockerLogsResponse) {
54
54
55
55
const errorMessages = dockerLogs . messages
56
56
. filter ( ( message ) => message . includes ( "i.g.s" ) ) // io.github.springwolf
57
- . filter ( ( message ) => message . includes ( "ERROR" ) || message . includes ( "WARN" ) ) ;
57
+ . filter (
58
+ ( message ) =>
59
+ message . includes ( "ERROR" ) ||
60
+ message . includes ( "WARN" ) ||
61
+ message . includes ( "Failed" )
62
+ ) ;
58
63
59
64
expect ( errorMessages , {
60
65
message : "expect: No Springwolf ERROR or WARN log messages found" ,
Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ dependencies {
48
48
49
49
testImplementation " org.testcontainers:testcontainers:${ testcontainersVersion} "
50
50
testImplementation " org.testcontainers:junit-jupiter:${ testcontainersVersion} "
51
+
52
+ testAnnotationProcessor " org.projectlombok:lombok:${ lombokVersion} "
53
+ testCompileOnly " org.projectlombok:lombok:${ lombokVersion} "
51
54
}
52
55
53
56
docker {
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: Apache-2.0
2
2
package io .github .springwolf .examples .jms ;
3
3
4
+ import lombok .extern .slf4j .Slf4j ;
4
5
import org .junit .jupiter .api .Test ;
5
6
import org .springframework .web .client .RestTemplate ;
6
7
import org .testcontainers .containers .DockerComposeContainer ;
23
24
* the setup uses a full docker-compose context with a real jms instance.
24
25
*/
25
26
@ Testcontainers
27
+ @ Slf4j
26
28
// @Ignore("Uncomment this line if you have issues running this test on your local machine.")
27
29
public class ApiSystemTest {
28
30
@@ -43,9 +45,10 @@ public class ApiSystemTest {
43
45
}
44
46
45
47
@ Container
46
- public DockerComposeContainer <?> environment = new DockerComposeContainer <>(new File ("docker-compose.yml" ))
48
+ public static DockerComposeContainer <?> environment = new DockerComposeContainer <>(new File ("docker-compose.yml" ))
47
49
.withExposedService (APP_NAME , APP_PORT )
48
- .withEnv (ENV );
50
+ .withEnv (ENV )
51
+ .withLogConsumer (APP_NAME , l -> log .debug ("APP: {}" , l .getUtf8StringWithoutLineEnding ()));
49
52
50
53
private String baseUrl () {
51
54
String host = environment .getServiceHost (APP_NAME , APP_PORT );
You can’t perform that action at this time.
0 commit comments