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

OZG-6798 mock OzgCloudFileServices

parent 275cec3e
No related branches found
No related tags found
No related merge requests found
package de.ozgcloud.nachrichten; package de.ozgcloud.nachrichten;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.test.mock.mockito.MockBean; import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
...@@ -7,6 +8,7 @@ import org.springframework.context.annotation.ComponentScan; ...@@ -7,6 +8,7 @@ import org.springframework.context.annotation.ComponentScan;
import de.ozgcloud.apilib.common.command.OzgCloudCommandService; import de.ozgcloud.apilib.common.command.OzgCloudCommandService;
import de.ozgcloud.apilib.file.OzgCloudFileService; import de.ozgcloud.apilib.file.OzgCloudFileService;
import de.ozgcloud.nachrichten.postfach.BinaryFileService; import de.ozgcloud.nachrichten.postfach.BinaryFileService;
import de.ozgcloud.nachrichten.postfach.muk.MukPostfachConfiguration;
@SpringBootApplication @SpringBootApplication
@ComponentScan(basePackages = "de.ozgcloud.*") @ComponentScan(basePackages = "de.ozgcloud.*")
...@@ -15,7 +17,11 @@ public class NachrichtenManagerTestApplication { ...@@ -15,7 +17,11 @@ public class NachrichtenManagerTestApplication {
@MockBean @MockBean
private OzgCloudCommandService ozgCloudCommandService; private OzgCloudCommandService ozgCloudCommandService;
@MockBean @MockBean
private OzgCloudFileService ozgCloudFileService; @Qualifier(NachrichtenManagerConfiguration.OZG_CLOUD_FILE_SERVICE_NAME)
private OzgCloudFileService nachrichtenOzgCloudFileServices;
@MockBean
@Qualifier(MukPostfachConfiguration.OZG_CLOUD_FILE_SERVICE_NAME)
private OzgCloudFileService mukOzgCloudFileServices;
@MockBean @MockBean
private BinaryFileService binaryFileService; private BinaryFileService binaryFileService;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment