Skip to content

Commit 657f17b

Browse files
committed
- Cleanup in tests.
1 parent a2893c1 commit 657f17b

File tree

49 files changed

+274
-75
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+274
-75
lines changed

proxies/aareg-proxy/src/test/java/no/nav/testnav/proxies/aareg/ApplicationContextTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ class ApplicationContextTest {
2020
void contextLoads() {
2121
assertThat(true).isTrue();
2222
}
23+
2324
}

proxies/aareg-proxy/src/test/resources/application-test.properties

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
TOKEN_X_ISSUER: dummy
2+
3+
spring:
4+
cloud:
5+
gcp:
6+
secretmanager:
7+
enabled: false

proxies/aareg-synt-services-proxy/src/test/java/no/nav/testnav/proxies/aaregsyntservicesproxy/ApplicationContextTest.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder;
77
import org.springframework.test.context.ActiveProfiles;
88

9+
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
10+
911
@SpringBootTest
1012
@ActiveProfiles("test")
1113
class ApplicationContextTest {
@@ -15,8 +17,8 @@ class ApplicationContextTest {
1517
private ReactiveJwtDecoder reactiveJwtDecoder;
1618

1719
@Test
18-
@SuppressWarnings("java:S2699")
1920
void load_app_context() {
20-
// Does nothing.
21+
assertThat(true).isTrue();
2122
}
23+
2224
}

proxies/arbeidsplassencv-proxy/src/test/java/no/nav/testnav/proxies/arbeidsplassencvproxy/ApplicationContextTest.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,19 @@
66
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder;
77
import org.springframework.test.context.ActiveProfiles;
88

9+
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
10+
911
@SpringBootTest
1012
@ActiveProfiles("test")
1113
class ApplicationContextTest {
1214

1315
@MockBean
16+
@SuppressWarnings("unused")
1417
private ReactiveJwtDecoder reactiveJwtDecoder;
1518

1619
@Test
17-
@SuppressWarnings("java:S2699")
1820
void load_app_context() {
19-
// Does nothing.
21+
assertThat(true).isTrue();
2022
}
2123

2224
}

proxies/arena-forvalteren-proxy/src/test/java/no/nav/testnav/proxies/arenaforvalterenproxy/ApplicationContextTest.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@
66
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder;
77
import org.springframework.test.context.ActiveProfiles;
88

9+
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
10+
911
@SpringBootTest
1012
@ActiveProfiles("test")
1113
class ApplicationContextTest {
1214

1315
@MockBean
14-
public ReactiveJwtDecoder reactiveJwtDecoder;
16+
@SuppressWarnings("unused")
17+
private ReactiveJwtDecoder reactiveJwtDecoder;
1518

1619
@Test
17-
@SuppressWarnings("java:S2699")
1820
void load_app_context() {
21+
assertThat(true).isTrue();
1922
}
23+
2024
}

proxies/arena-forvalteren-proxy/src/test/resources/application-test.yml

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
spring:
2+
cloud:
3+
gcp:
4+
secretmanager:
5+
enabled: false
6+
17
app:
28
arena:
39
services:

proxies/batch-adeo-proxy/src/test/java/no/nav/testnav/proxies/batchadeoproxy/ApplicationContextTest.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@
66
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder;
77
import org.springframework.test.context.ActiveProfiles;
88

9+
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
10+
911
@SpringBootTest
1012
@ActiveProfiles("test")
1113
class ApplicationContextTest {
1214

1315
@MockBean
14-
public ReactiveJwtDecoder reactiveJwtDecoder;
16+
@SuppressWarnings("unused")
17+
private ReactiveJwtDecoder reactiveJwtDecoder;
1518

1619
@Test
17-
@SuppressWarnings("java:S2699")
1820
void load_app_context() {
21+
assertThat(true).isTrue();
1922
}
23+
2024
}

proxies/batch-adeo-proxy/src/test/resources/application-test.properties

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
TOKEN_X_ISSUER: dummy
2+
3+
spring:
4+
cloud:
5+
gcp:
6+
secretmanager:
7+
enabled: false

proxies/brregstub-proxy/src/test/java/no/nav/testnav/proxies/brregstubproxy/ApplicationContextTest.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@
66
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder;
77
import org.springframework.test.context.ActiveProfiles;
88

9+
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
10+
911
@SpringBootTest
1012
@ActiveProfiles("test")
1113
class ApplicationContextTest {
1214

1315
@MockBean
14-
public ReactiveJwtDecoder reactiveJwtDecoder;
16+
@SuppressWarnings("unused")
17+
private ReactiveJwtDecoder reactiveJwtDecoder;
1518

1619
@Test
17-
@SuppressWarnings("java:S2699")
1820
void load_app_context() {
21+
assertThat(true).isTrue();
1922
}
23+
2024
}
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
TOKEN_X_ISSUER: dummy
1+
TOKEN_X_ISSUER: dummy
2+
3+
spring:
4+
cloud:
5+
gcp:
6+
secretmanager:
7+
enabled: false

proxies/dokarkiv-proxy/src/test/java/no/nav/testnav/proxies/dokarkivproxy/ApplicationContextTest.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@
66
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder;
77
import org.springframework.test.context.ActiveProfiles;
88

9+
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
10+
911
@SpringBootTest
1012
@ActiveProfiles("test")
1113
class ApplicationContextTest {
1214

1315
@MockBean
16+
@SuppressWarnings("unused")
1417
public ReactiveJwtDecoder reactiveJwtDecoder;
1518

1619
@Test
17-
@SuppressWarnings("java:S2699")
1820
void load_app_context() {
21+
assertThat(true).isTrue();
1922
}
23+
2024
}

proxies/dokarkiv-proxy/src/test/resources/application-test.yml

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
TOKEN_X_ISSUER: dummy
22

3+
spring:
4+
cloud:
5+
gcp:
6+
secretmanager:
7+
enabled: false
8+
39
consumers:
410
dokarkiv:
511
url: http://dokarkiv-dummy.dummy.no

proxies/ereg-proxy/src/test/java/no/nav/testnav/proxies/eregproxy/ApplicationContextTest.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder;
77
import org.springframework.test.context.ActiveProfiles;
88

9+
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
10+
911
@SpringBootTest
1012
@ActiveProfiles("test")
1113
class ApplicationContextTest {
@@ -15,8 +17,8 @@ class ApplicationContextTest {
1517
private ReactiveJwtDecoder reactiveJwtDecoder;
1618

1719
@Test
18-
@SuppressWarnings("java:S2699")
1920
void load_app_context() {
20-
// Does nothing.
21+
assertThat(true).isTrue();
2122
}
23+
2224
}

proxies/fullmakt-proxy/src/test/java/no/nav/testnav/proxies/fullmaktproxy/ApplicationContextTest.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@
66
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder;
77
import org.springframework.test.context.ActiveProfiles;
88

9+
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
10+
911
@SpringBootTest
1012
@ActiveProfiles("test")
1113
class ApplicationContextTest {
1214

1315
@MockBean
14-
public ReactiveJwtDecoder reactiveJwtDecoder;
16+
@SuppressWarnings("unused")
17+
private ReactiveJwtDecoder reactiveJwtDecoder;
1518

1619
@Test
17-
@SuppressWarnings("java:S2699")
1820
void load_app_context() {
21+
assertThat(true).isTrue();
1922
}
23+
2024
}
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
TOKEN_X_ISSUER: dummy
1+
TOKEN_X_ISSUER: dummy
2+
3+
spring:
4+
cloud:
5+
gcp:
6+
secretmanager:
7+
enabled: false

proxies/histark-proxy/src/test/java/no/nav/testnav/proxies/histarkproxy/ApplicationContextTest.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@
66
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder;
77
import org.springframework.test.context.ActiveProfiles;
88

9+
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
10+
911
@SpringBootTest
1012
@ActiveProfiles("test")
1113
class ApplicationContextTest {
1214

1315
@MockBean
14-
public ReactiveJwtDecoder reactiveJwtDecoder;
16+
@SuppressWarnings("unused")
17+
private ReactiveJwtDecoder reactiveJwtDecoder;
1518

1619
@Test
17-
@SuppressWarnings("java:S2699")
1820
void load_app_context() {
21+
assertThat(true).isTrue();
1922
}
23+
2024
}
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
TOKEN_X_ISSUER: dummy
2+
3+
spring:
4+
cloud:
5+
gcp:
6+
secretmanager:
7+
enabled: false

proxies/inntektstub-proxy/src/test/java/no/nav/testnav/proxies/inntektstubproxy/ApplicationContextTest.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@
66
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder;
77
import org.springframework.test.context.ActiveProfiles;
88

9+
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
10+
911
@SpringBootTest
1012
@ActiveProfiles("test")
1113
class ApplicationContextTest {
1214

1315
@MockBean
14-
public ReactiveJwtDecoder reactiveJwtDecoder;
16+
@SuppressWarnings("unused")
17+
private ReactiveJwtDecoder reactiveJwtDecoder;
1518

1619
@Test
17-
@SuppressWarnings("java:S2699")
1820
void load_app_context() {
21+
assertThat(true).isTrue();
1922
}
23+
2024
}
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
TOKEN_X_ISSUER: dummy
1+
TOKEN_X_ISSUER: dummy
2+
3+
spring:
4+
cloud:
5+
gcp:
6+
secretmanager:
7+
enabled: false

proxies/inst-proxy/src/test/java/no/nav/testnav/proxies/instproxy/ApplicationContextTest.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@
66
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder;
77
import org.springframework.test.context.ActiveProfiles;
88

9+
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
10+
911
@SpringBootTest
1012
@ActiveProfiles("test")
1113
class ApplicationContextTest {
1214

1315
@MockBean
14-
public ReactiveJwtDecoder reactiveJwtDecoder;
16+
@SuppressWarnings("unused")
17+
private ReactiveJwtDecoder reactiveJwtDecoder;
1518

1619
@Test
17-
@SuppressWarnings("java:S2699")
1820
void load_app_context() {
21+
assertThat(true).isTrue();
1922
}
23+
2024
}

proxies/inst-proxy/src/test/resources/application-test.properties

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
TOKEN_X_ISSUER: dummy
2+
3+
spring:
4+
cloud:
5+
gcp:
6+
secretmanager:
7+
enabled: false

proxies/kontoregister-person-proxy/src/test/java/no/nav/testnav/proxies/kontoregisterperson/ApplicationContextTest.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@
66
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder;
77
import org.springframework.test.context.ActiveProfiles;
88

9+
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
10+
911
@SpringBootTest
1012
@ActiveProfiles("test")
1113
class ApplicationContextTest {
1214

1315
@MockBean
14-
public ReactiveJwtDecoder reactiveJwtDecoder;
16+
@SuppressWarnings("unused")
17+
private ReactiveJwtDecoder reactiveJwtDecoder;
1518

1619
@Test
17-
@SuppressWarnings("java:S2699")
1820
void load_app_context() {
21+
assertThat(true).isTrue();
1922
}
23+
2024
}
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
TOKEN_X_ISSUER: dummy
2+
3+
spring:
4+
cloud:
5+
gcp:
6+
secretmanager:
7+
enabled: false

proxies/krrstub-proxy/src/test/java/no/nav/testnav/proxies/krrstubproxy/ApplicationContextTest.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@
66
import org.springframework.security.oauth2.jwt.ReactiveJwtDecoder;
77
import org.springframework.test.context.ActiveProfiles;
88

9+
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
10+
911
@SpringBootTest
1012
@ActiveProfiles("test")
1113
class ApplicationContextTest {
1214

1315
@MockBean
14-
public ReactiveJwtDecoder reactiveJwtDecoder;
16+
@SuppressWarnings("unused")
17+
private ReactiveJwtDecoder reactiveJwtDecoder;
1518

1619
@Test
17-
@SuppressWarnings("java:S2699")
1820
void load_app_context() {
21+
assertThat(true).isTrue();
1922
}
23+
2024
}

0 commit comments

Comments
 (0)