File tree Expand file tree Collapse file tree 5 files changed +12
-5
lines changed
test/java/de/rieckpil/blog/microshedtesting
spring-boot-example/src/test/java/de/rieckpil/blog/localstack Expand file tree Collapse file tree 5 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 58
58
<version >1.7.33</version >
59
59
</dependency >
60
60
61
+ <dependency >
62
+ <groupId >org.glassfish</groupId >
63
+ <artifactId >jakarta.json</artifactId >
64
+ <version >2.0.1</version >
65
+ </dependency >
66
+
61
67
<dependency >
62
68
<groupId >org.junit.jupiter</groupId >
63
69
<artifactId >junit-jupiter</artifactId >
Original file line number Diff line number Diff line change 1
1
package de .rieckpil .blog ;
2
2
3
-
4
3
import jakarta .ws .rs .ApplicationPath ;
5
4
import jakarta .ws .rs .core .Application ;
6
5
Original file line number Diff line number Diff line change 2
2
<server description =" new server" >
3
3
4
4
<featureManager >
5
- <feature >javaee-8 .0</feature >
6
- <feature >microProfile-4 .0</feature >
5
+ <feature >jakartaee-10 .0</feature >
6
+ <feature >microProfile-6 .0</feature >
7
7
</featureManager >
8
8
9
9
<httpEndpoint id =" defaultHttpEndpoint" httpPort =" 9080" httpsPort =" 9443" />
Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ public class SampleApplicationConfig implements SharedContainerConfiguration {
12
12
13
13
@ Container
14
14
public static PostgreSQLContainer <?> postgres =
15
- new PostgreSQLContainer <>(DockerImageName .parse ("postgres:12 " ))
15
+ new PostgreSQLContainer <>(DockerImageName .parse ("postgres:17 " ))
16
16
.withNetworkAliases ("postgres" )
17
17
.withUsername ("duke" )
18
18
.withPassword ("s3cr3t" )
19
19
.withDatabaseName ("users" );
20
20
21
21
@ Container
22
22
public static MockServerContainer mockServer =
23
- new MockServerContainer (DockerImageName .parse ("mockserver/mockserver:mockserver-5.11.2 " ))
23
+ new MockServerContainer (DockerImageName .parse ("mockserver/mockserver:5.15.0 " ))
24
24
.withNetworkAliases ("mockserver" );
25
25
26
26
@ Container
Original file line number Diff line number Diff line change 18
18
import software .amazon .awssdk .core .sync .RequestBody ;
19
19
import software .amazon .awssdk .services .s3 .S3Client ;
20
20
import software .amazon .awssdk .services .s3 .model .GetObjectRequest ;
21
+ import software .amazon .awssdk .services .s3 .model .NoSuchKeyException ;
21
22
import software .amazon .awssdk .services .s3 .model .PutObjectRequest ;
22
23
import software .amazon .awssdk .services .sqs .SqsAsyncClient ;
23
24
import software .amazon .awssdk .services .sqs .model .SendMessageRequest ;
@@ -71,6 +72,7 @@ void shouldProcessIncomingUploadEventAndUploadThumbnailImage() throws IOExceptio
71
72
given ()
72
73
.atMost (Duration .ofSeconds (5 ))
73
74
.await ()
75
+ .ignoreException (NoSuchKeyException .class )
74
76
.untilAsserted (() -> assertNotNull (s3Client .getObject (GetObjectRequest .builder ().bucket ("processed-images" ).key ("thumbnail-duke-mascot.png" ).build ())));
75
77
}
76
78
}
You can’t perform that action at this time.
0 commit comments