Skip to content
Snippets Groups Projects
Commit 7a78ed75 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-3284 fix test coverage

parent b374eb31
No related branches found
No related tags found
No related merge requests found
...@@ -80,6 +80,21 @@ ...@@ -80,6 +80,21 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
</plugins> </plugins>
</build> </build>
......
...@@ -7,10 +7,12 @@ import org.junit.jupiter.api.Nested; ...@@ -7,10 +7,12 @@ import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.ResultActions; import org.springframework.test.web.servlet.ResultActions;
import de.itvsh.kop.common.test.ITCase; import de.itvsh.kop.common.test.ITCase;
import de.itvsh.kop.eingangsadapter.semantik.SemantikAdapter;
import lombok.SneakyThrows; import lombok.SneakyThrows;
@ITCase @ITCase
...@@ -20,6 +22,9 @@ class FormDataControllerITCase { ...@@ -20,6 +22,9 @@ class FormDataControllerITCase {
@Autowired @Autowired
private MockMvc mockMvc; private MockMvc mockMvc;
@MockBean
private SemantikAdapter semantikAdapter;
@Nested @Nested
class ReceiveFormData { class ReceiveFormData {
......
package de.itvsh.kop.eingang.formcycle;
import org.junit.jupiter.api.Test;
import de.itvsh.kop.common.test.ITCase;
@ITCase
class FormcycleAdapterApplicationTest {
@Test
void shouldStartApplication() {
// just start without an error
}
}
kop:
adapter:
targetPlutoName: local
fallbackStrategy: DENY
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment