diff --git a/mock-service/pom.xml b/mock-service/pom.xml
index 955d9c38..25ad841e 100644
--- a/mock-service/pom.xml
+++ b/mock-service/pom.xml
@@ -156,13 +156,15 @@
${project.artifactId}:latest
-
paketobuildpacks/builder-jammy-tiny:latest
paketobuildpacks/run-jammy-tiny:latest
21
+
+ //./pipe/dockerDesktopLinuxEngine
+
diff --git a/spring-boot/spring-boot-rest/src/test/java/io/github/mjhaugsdal/rest/configuration/RestTestConfiguration.java b/spring-boot/spring-boot-rest/src/test/java/io/github/mjhaugsdal/rest/configuration/RestTestConfiguration.java
index 09b5fe68..2549f072 100644
--- a/spring-boot/spring-boot-rest/src/test/java/io/github/mjhaugsdal/rest/configuration/RestTestConfiguration.java
+++ b/spring-boot/spring-boot-rest/src/test/java/io/github/mjhaugsdal/rest/configuration/RestTestConfiguration.java
@@ -26,133 +26,140 @@
@Profile("default")
public class RestTestConfiguration {
- static {
- System.setProperty("rest.na.address", "http://localhost:" + TestSocketUtils.findAvailableTcpPort() + "/v2");
- System.setProperty("rest.rekvirent.address", "http://localhost:" + TestSocketUtils.findAvailableTcpPort()+ "/v2");
- System.setProperty("rest.utleverer.address", "http://localhost:" + TestSocketUtils.findAvailableTcpPort()+ "/v2");
- }
-
- @Value("${rest.na.address}")
- String naAddress;
-
- @Value("${rest.rekvirent.address}")
- String rekvirentAddress;
-
- @Value("${rest.utleverer.address}")
- String utlevererAddress;
-
- @Value("${use.jwk}")
- String jwk;
-
-
- @Bean
- public Server naServer() {
- var serverFactoryBean = new JAXRSServerFactoryBean();
- serverFactoryBean.setServiceClass(NaWebServiceImpl.class);
- serverFactoryBean.setAddress(naAddress + "/" + "NA");
- commonSetup(serverFactoryBean, jwk);
- return serverFactoryBean.create();
- }
+ @TestConfiguration
+ @Profile("default")
+ public static class DefaultConfiguration {
+ static {
+ System.setProperty("rest.na.address", "http://localhost:" + TestSocketUtils.findAvailableTcpPort() + "/v2");
+ System.setProperty("rest.rekvirent.address", "http://localhost:" + TestSocketUtils.findAvailableTcpPort()+ "/v2");
+ System.setProperty("rest.utleverer.address", "http://localhost:" + TestSocketUtils.findAvailableTcpPort()+ "/v2");
+ }
- @Bean
- public Server utlevererServer() {
- var serverFactoryBean = new JAXRSServerFactoryBean();
- serverFactoryBean.setServiceClass(UtlevererWebServiceImpl.class);
- serverFactoryBean.setAddress(utlevererAddress + "/" + "Utleverer");
- commonSetup(serverFactoryBean, jwk);
- return serverFactoryBean.create();
- }
+ @Value("${rest.na.address}")
+ String naAddress;
+ @Value("${rest.rekvirent.address}")
+ String rekvirentAddress;
- @Bean
- public Server rekvirentServer() {
- var serverFactoryBean = new JAXRSServerFactoryBean();
- serverFactoryBean.setServiceClass(RekvirentWebServiceImpl.class);
- serverFactoryBean.setAddress(rekvirentAddress + "/" + "Rekvirent");
- commonSetup(serverFactoryBean, jwk);
- return serverFactoryBean.create();
- }
+ @Value("${rest.utleverer.address}")
+ String utlevererAddress;
- private static void commonSetup(JAXRSServerFactoryBean serverFactoryBean, String jwk) {
- var loggingFeature = new LoggingFeature();
- loggingFeature.setPrettyLogging(true);
- serverFactoryBean.getFeatures().add(loggingFeature);
+ @Value("${use.jwk}")
+ String jwk;
- List