diff --git a/nachrichten-manager-server/pom.xml b/nachrichten-manager-server/pom.xml index c21fc8f0060c8323b22c26782700cea82082ba9f..652ded4f9986206c079989f9c01c09a08508bcf7 100644 --- a/nachrichten-manager-server/pom.xml +++ b/nachrichten-manager-server/pom.xml @@ -24,7 +24,8 @@ unter der Lizenz sind dem Lizenztext zu entnehmen. --> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> @@ -86,10 +87,10 @@ <artifactId>muk-postfach</artifactId> <version>${muk-postfach.version}</version> </dependency> - - <dependency> + + <dependency> <groupId>de.ozgcloud.api-lib</groupId> - <artifactId>ozg-cloud-spring-boot-starter</artifactId> + <artifactId>api-lib-core</artifactId> <version>${ozgcloud-starter.version}</version> </dependency> @@ -221,6 +222,11 @@ <type>test-jar</type> <scope>test</scope> </dependency> + <dependency> + <groupId>io.grpc</groupId> + <artifactId>grpc-inprocess</artifactId> + <scope>test</scope> + </dependency> </dependencies> <build> @@ -334,4 +340,4 @@ </snapshots> </repository> </repositories> -</project> +</project> \ No newline at end of file diff --git a/nachrichten-manager-server/src/test/java/de/ozgcloud/nachrichten/email/MailServiceITCase.java b/nachrichten-manager-server/src/test/java/de/ozgcloud/nachrichten/email/MailServiceITCase.java index 62141fa2ef9ffa37b653b45a144a87b2c0da74e6..e2231251ff4e5a65d0fab723728219e5599237fa 100644 --- a/nachrichten-manager-server/src/test/java/de/ozgcloud/nachrichten/email/MailServiceITCase.java +++ b/nachrichten-manager-server/src/test/java/de/ozgcloud/nachrichten/email/MailServiceITCase.java @@ -8,7 +8,9 @@ import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.function.Executable; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.mock.mockito.MockBean; +import de.ozgcloud.apilib.common.callcontext.OzgCloudCallContextAttachingInterceptor; import de.ozgcloud.common.test.ITCase; @ITCase @@ -17,6 +19,9 @@ class MailServiceITCase { @Autowired private MailService mailService; + @MockBean + private OzgCloudCallContextAttachingInterceptor interceptor; + @Nested class TestSendMail { diff --git a/nachrichten-manager-server/src/test/resources/application.yaml b/nachrichten-manager-server/src/test/resources/application.yaml index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..2acc3e44eac2a1883b100331a87f020580ba2be9 100644 --- a/nachrichten-manager-server/src/test/resources/application.yaml +++ b/nachrichten-manager-server/src/test/resources/application.yaml @@ -0,0 +1,16 @@ +grpc: + client: + command-manager: + address: self:self + negotiationType: PLAINTEXT + +spring: + mail: + host: dummy + username: dummy + password: dummy + port: -1 + +ozgcloud: + notification: + mail-from: mailFrom \ No newline at end of file