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

OZG-3530 rename application class

parent b7a3b188
Branches
Tags
No related merge requests found
Showing
with 18 additions and 19 deletions
...@@ -28,7 +28,6 @@ import java.util.TimeZone; ...@@ -28,7 +28,6 @@ import java.util.TimeZone;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan; import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.EnableAspectJAutoProxy; import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Primary; import org.springframework.context.annotation.Primary;
...@@ -44,11 +43,11 @@ import org.springframework.security.task.DelegatingSecurityContextAsyncTaskExecu ...@@ -44,11 +43,11 @@ import org.springframework.security.task.DelegatingSecurityContextAsyncTaskExecu
@EnableScheduling @EnableScheduling
@EnableAspectJAutoProxy(proxyTargetClass = true) @EnableAspectJAutoProxy(proxyTargetClass = true)
@ConfigurationPropertiesScan("de.ozgcloud.vorgang.*") @ConfigurationPropertiesScan("de.ozgcloud.vorgang.*")
public class PlutoServerApplication { public class VorgangManagerServerApplication {
public static void main(String[] args) { public static void main(String[] args) {
TimeZone.setDefault(TimeZone.getTimeZone("UTC")); TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
SpringApplication.run(PlutoServerApplication.class, args); SpringApplication.run(VorgangManagerServerApplication.class, args);
} }
@Bean @Bean
......
...@@ -40,7 +40,7 @@ import org.springframework.test.annotation.DirtiesContext; ...@@ -40,7 +40,7 @@ import org.springframework.test.annotation.DirtiesContext;
import de.itvsh.kop.common.test.DataITCase; import de.itvsh.kop.common.test.DataITCase;
import de.ozgcloud.nachrichten.common.grpc.NachrichtenCallContextAttachingInterceptor; import de.ozgcloud.nachrichten.common.grpc.NachrichtenCallContextAttachingInterceptor;
import de.ozgcloud.vorgang.PlutoServerApplication; import de.ozgcloud.vorgang.VorgangManagerServerApplication;
import de.ozgcloud.vorgang.clientattribute.ClientAttribute; import de.ozgcloud.vorgang.clientattribute.ClientAttribute;
import de.ozgcloud.vorgang.vorgang.VorgangTestFactory; import de.ozgcloud.vorgang.vorgang.VorgangTestFactory;
import io.grpc.Metadata; import io.grpc.Metadata;
...@@ -52,7 +52,7 @@ import io.grpc.ServerInterceptor; ...@@ -52,7 +52,7 @@ import io.grpc.ServerInterceptor;
import lombok.Getter; import lombok.Getter;
import net.devh.boot.grpc.server.interceptor.GrpcGlobalServerInterceptor; import net.devh.boot.grpc.server.interceptor.GrpcGlobalServerInterceptor;
@SpringBootTest(classes = { PlutoServerApplication.class }, properties = { @SpringBootTest(classes = { VorgangManagerServerApplication.class }, properties = {
"grpc.server.inProcessName=test", "grpc.server.inProcessName=test",
"grpc.server.port=-1", "grpc.server.port=-1",
"grpc.client.pluto.address=in-process:test" "grpc.client.pluto.address=in-process:test"
......
...@@ -41,13 +41,13 @@ import org.springframework.context.ApplicationEventPublisher; ...@@ -41,13 +41,13 @@ import org.springframework.context.ApplicationEventPublisher;
import de.itvsh.kop.common.test.ITCase; import de.itvsh.kop.common.test.ITCase;
import de.ozgcloud.command.Command; import de.ozgcloud.command.Command;
import de.ozgcloud.command.CommandCreatedEvent; import de.ozgcloud.command.CommandCreatedEvent;
import de.ozgcloud.vorgang.PlutoServerApplication; import de.ozgcloud.vorgang.VorgangManagerServerApplication;
import de.ozgcloud.vorgang.command.CommandService; import de.ozgcloud.vorgang.command.CommandService;
import de.ozgcloud.vorgang.command.CommandTestFactory; import de.ozgcloud.vorgang.command.CommandTestFactory;
import de.ozgcloud.vorgang.vorgang.VorgangService; import de.ozgcloud.vorgang.vorgang.VorgangService;
@ITCase @ITCase
@SpringBootTest(classes = { PlutoServerApplication.class }) @SpringBootTest(classes = { VorgangManagerServerApplication.class })
class PostfachEventListenerITCase { class PostfachEventListenerITCase {
@Autowired @Autowired
......
...@@ -56,7 +56,7 @@ import de.ozgcloud.nachrichten.postfach.osi.MessageAttachmentTestFactory; ...@@ -56,7 +56,7 @@ import de.ozgcloud.nachrichten.postfach.osi.MessageAttachmentTestFactory;
import de.ozgcloud.nachrichten.postfach.osi.MessageJsonReplyTestFactory; import de.ozgcloud.nachrichten.postfach.osi.MessageJsonReplyTestFactory;
import de.ozgcloud.nachrichten.postfach.osi.MessageTestFactory; import de.ozgcloud.nachrichten.postfach.osi.MessageTestFactory;
import de.ozgcloud.nachrichten.postfach.osi.OsiPostfachProperties; import de.ozgcloud.nachrichten.postfach.osi.OsiPostfachProperties;
import de.ozgcloud.vorgang.PlutoServerApplication; import de.ozgcloud.vorgang.VorgangManagerServerApplication;
import de.ozgcloud.vorgang.attached_item.VorgangAttachedItem; import de.ozgcloud.vorgang.attached_item.VorgangAttachedItem;
import de.ozgcloud.vorgang.common.security.PolicyService; import de.ozgcloud.vorgang.common.security.PolicyService;
import de.ozgcloud.vorgang.files.FileId; import de.ozgcloud.vorgang.files.FileId;
...@@ -64,7 +64,7 @@ import de.ozgcloud.vorgang.files.FileService; ...@@ -64,7 +64,7 @@ import de.ozgcloud.vorgang.files.FileService;
import de.ozgcloud.vorgang.files.OzgFile; import de.ozgcloud.vorgang.files.OzgFile;
import io.grpc.stub.StreamObserver; import io.grpc.stub.StreamObserver;
@SpringBootTest(classes = { PlutoServerApplication.class, OsiPostfachProperties.class }, properties = { @SpringBootTest(classes = { VorgangManagerServerApplication.class, OsiPostfachProperties.class }, properties = {
"kop.osi.postfach.proxyapi.url=http://localhost/ApiProxy/V1/Message", "kop.osi.postfach.proxyapi.url=http://localhost/ApiProxy/V1/Message",
"kop.osi.postfach.proxyapi.key=1234", "kop.osi.postfach.proxyapi.key=1234",
"kop.osi.postfach.proxyapi.realm=test-realm", "kop.osi.postfach.proxyapi.realm=test-realm",
......
...@@ -20,11 +20,11 @@ import org.springframework.ws.test.client.MockWebServiceServer; ...@@ -20,11 +20,11 @@ import org.springframework.ws.test.client.MockWebServiceServer;
import de.itvsh.kop.common.test.ITCase; import de.itvsh.kop.common.test.ITCase;
import de.ozgcloud.nachrichten.postfach.PostfachNachrichtTestFactory; import de.ozgcloud.nachrichten.postfach.PostfachNachrichtTestFactory;
import de.ozgcloud.nachrichten.postfach.PostfachRuntimeException; import de.ozgcloud.nachrichten.postfach.PostfachRuntimeException;
import de.ozgcloud.vorgang.PlutoServerApplication; import de.ozgcloud.vorgang.VorgangManagerServerApplication;
import lombok.val; import lombok.val;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = { PlutoServerApplication.class }, properties = { @SpringBootTest(classes = { VorgangManagerServerApplication.class }, properties = {
"ozgcloud.bayernid.server=https://service", "ozgcloud.bayernid.server=https://service",
"ozgcloud.bayernid.zertifikat.keystore=classpath:bayernid.p12", "ozgcloud.bayernid.zertifikat.keystore=classpath:bayernid.p12",
"ozgcloud.bayernid.zertifikat.password=SyPaRAxe97", "ozgcloud.bayernid.zertifikat.password=SyPaRAxe97",
......
...@@ -9,10 +9,10 @@ import org.springframework.boot.test.context.SpringBootTest; ...@@ -9,10 +9,10 @@ import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.context.junit4.SpringRunner;
import de.itvsh.kop.common.test.ITCase; import de.itvsh.kop.common.test.ITCase;
import de.ozgcloud.vorgang.PlutoServerApplication; import de.ozgcloud.vorgang.VorgangManagerServerApplication;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = { PlutoServerApplication.class }) @SpringBootTest(classes = { VorgangManagerServerApplication.class })
@ITCase @ITCase
class BayernIdPostfachServiceNoConfigurationITCase { class BayernIdPostfachServiceNoConfigurationITCase {
......
...@@ -36,11 +36,11 @@ import org.springframework.boot.test.context.SpringBootTest; ...@@ -36,11 +36,11 @@ import org.springframework.boot.test.context.SpringBootTest;
import de.itvsh.kop.common.test.ITCase; import de.itvsh.kop.common.test.ITCase;
import de.ozgcloud.nachrichten.postfach.PostfachNachricht; import de.ozgcloud.nachrichten.postfach.PostfachNachricht;
import de.ozgcloud.nachrichten.postfach.PostfachNachrichtTestFactory; import de.ozgcloud.nachrichten.postfach.PostfachNachrichtTestFactory;
import de.ozgcloud.vorgang.PlutoServerApplication; import de.ozgcloud.vorgang.VorgangManagerServerApplication;
@Disabled("Echter Test für OSI Postfach mit echtem Zugriff. Unbedingt defaultmäßig deaktivieren!!") @Disabled("Echter Test für OSI Postfach mit echtem Zugriff. Unbedingt defaultmäßig deaktivieren!!")
@SpringBootTest( @SpringBootTest(
classes = { PlutoServerApplication.class, OsiPostfachProperties.class }, classes = { VorgangManagerServerApplication.class, OsiPostfachProperties.class },
properties = { properties = {
"kop.osi.postfach.proxyapi.url=https://postfach.serviceportal-stage.schleswig-holstein.de/ApiProxy/V1/Message", "kop.osi.postfach.proxyapi.url=https://postfach.serviceportal-stage.schleswig-holstein.de/ApiProxy/V1/Message",
"kop.osi.postfach.proxyapi.key=db03d369-438a-4c1a-bcb8-9de951f5ef41", "kop.osi.postfach.proxyapi.key=db03d369-438a-4c1a-bcb8-9de951f5ef41",
......
...@@ -42,9 +42,9 @@ import de.itvsh.kop.common.test.ITCase; ...@@ -42,9 +42,9 @@ import de.itvsh.kop.common.test.ITCase;
import de.ozgcloud.nachrichten.postfach.FileId; import de.ozgcloud.nachrichten.postfach.FileId;
import de.ozgcloud.nachrichten.postfach.PostfachException; import de.ozgcloud.nachrichten.postfach.PostfachException;
import de.ozgcloud.nachrichten.postfach.PostfachNachrichtTestFactory; import de.ozgcloud.nachrichten.postfach.PostfachNachrichtTestFactory;
import de.ozgcloud.vorgang.PlutoServerApplication; import de.ozgcloud.vorgang.VorgangManagerServerApplication;
@SpringBootTest(classes = { PlutoServerApplication.class, OsiPostfachProperties.class }, properties = { @SpringBootTest(classes = { VorgangManagerServerApplication.class, OsiPostfachProperties.class }, properties = {
"kop.osi.postfach.proxyapi.url=http://localhost/ApiProxy/V1/Message", "kop.osi.postfach.proxyapi.url=http://localhost/ApiProxy/V1/Message",
"kop.osi.postfach.proxyapi.key=1234", "kop.osi.postfach.proxyapi.key=1234",
"kop.osi.postfach.proxyapi.realm=test-realm", "kop.osi.postfach.proxyapi.realm=test-realm",
......
...@@ -42,13 +42,13 @@ import org.springframework.data.mongodb.core.MongoOperations; ...@@ -42,13 +42,13 @@ import org.springframework.data.mongodb.core.MongoOperations;
import org.springframework.security.test.context.support.WithMockUser; import org.springframework.security.test.context.support.WithMockUser;
import de.itvsh.kop.common.test.DataITCase; import de.itvsh.kop.common.test.DataITCase;
import de.ozgcloud.vorgang.PlutoServerApplication; import de.ozgcloud.vorgang.VorgangManagerServerApplication;
import de.ozgcloud.vorgang.clientattribute.ClientAttributesMap; import de.ozgcloud.vorgang.clientattribute.ClientAttributesMap;
import de.ozgcloud.vorgang.servicekonto.ServiceKontoTestFactory; import de.ozgcloud.vorgang.servicekonto.ServiceKontoTestFactory;
import io.grpc.stub.StreamObserver; import io.grpc.stub.StreamObserver;
@DataITCase @DataITCase
@SpringBootTest(classes = { PlutoServerApplication.class, TestConfig.class }) @SpringBootTest(classes = { VorgangManagerServerApplication.class, TestConfig.class })
class VorgangITCase { class VorgangITCase {
@Autowired @Autowired
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment