Skip to content

Commit c9a3faf

Browse files
committed
added integration test to Spring boot sample
1 parent b963cc4 commit c9a3faf

File tree

3 files changed

+26
-6
lines changed

3 files changed

+26
-6
lines changed

samples/spring-boot-auto-config/pom.xml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,23 @@
3737
<scope>test</scope>
3838
<exclusions>
3939
<exclusion>
40-
<groupId>junit</groupId>
41-
<artifactId>junit</artifactId>
40+
<groupId>org.junit.vintage</groupId>
41+
<artifactId>junit-vintage-engine</artifactId>
42+
</exclusion>
43+
<exclusion>
44+
<groupId>org.springframework.boot</groupId>
45+
<artifactId>spring-boot-starter-logging</artifactId>
46+
</exclusion>
47+
<exclusion>
48+
<groupId>org.skyscreamer</groupId>
49+
<artifactId>jsonassert</artifactId>
4250
</exclusion>
4351
</exclusions>
4452
</dependency>
53+
<dependency>
54+
<groupId>org.springframework.boot</groupId>
55+
<artifactId>spring-boot-starter-log4j2</artifactId>
56+
</dependency>
4557
</dependencies>
4658

4759
<dependencyManagement>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.github.containersolutions.operator.sample;
2+
3+
import org.junit.jupiter.api.Test;
4+
import org.springframework.boot.test.context.SpringBootTest;
5+
6+
@SpringBootTest
7+
public class SpringBootStarterSampleApplicationIT {
8+
9+
@Test
10+
void contextLoads() {
11+
}
12+
}

spring-boot-starter/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,6 @@
8989
<artifactId>operator-framework</artifactId>
9090
<version>${project.version}</version>
9191
</dependency>
92-
<dependency>
93-
<groupId>org.slf4j</groupId>
94-
<artifactId>slf4j-api</artifactId>
95-
</dependency>
9692
<dependency>
9793
<groupId>org.mockito</groupId>
9894
<artifactId>mockito-core</artifactId>

0 commit comments

Comments
 (0)