X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-backend%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fric%2Fportal%2Fdashboard%2Fconfig%2FPortalApiConfiguration.java;h=863f9dbac993f640b4bdca5190856cd5b8f18568;hb=a0180adc6a1e1ec09472549596428b70d48db3fc;hp=b71ed227bd6187a59155e0edcd3596cbc22e723f;hpb=642622502dc1222af8570a3de2b0223fa5474500;p=portal%2Fric-dashboard.git diff --git a/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/config/PortalApiConfiguration.java b/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/config/PortalApiConfiguration.java index b71ed227..863f9dba 100644 --- a/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/config/PortalApiConfiguration.java +++ b/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/config/PortalApiConfiguration.java @@ -2,7 +2,7 @@ * ========================LICENSE_START================================= * O-RAN-SC * %% - * Copyright (C) 2019 AT&T Intellectual Property and Nokia + * Copyright (C) 2019 AT&T Intellectual Property * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,10 +28,13 @@ import org.slf4j.LoggerFactory; import org.springframework.boot.web.servlet.ServletRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Profile; @Configuration -@Profile("!test") +/** + * This is not restricted to test or !test profile, it's always active, the same + * servlet configuration is usable in production and test. This also means there + * is no PortalApiMockConfiguration class in the test area. + */ public class PortalApiConfiguration { private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());