aboutsummaryrefslogtreecommitdiffstats
path: root/cps-application/src/test
diff options
context:
space:
mode:
authorleventecsanyi <levente.csanyi@est.tech>2024-11-26 15:29:45 +0100
committerleventecsanyi <levente.csanyi@est.tech>2024-12-05 14:18:49 +0100
commit2dac434c92dfd20791eda9364783846a5da8c605 (patch)
treee9f0ede75d3257edf25467f12b9d9a67d6a6b17f /cps-application/src/test
parentcd6fc6bf8fb1d28d741199c07b7dd6ecaac6d6a5 (diff)
Moved common classes under the api package under api
- moved common classes under the api package - moved Spec files Issue-ID: CPS-2512 Change-Id: I88046280ce359ce8cc488ad37d4e6f85406b0dbf Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
Diffstat (limited to 'cps-application/src/test')
-rw-r--r--cps-application/src/test/java/org/onap/cps/architecture/CpsArchitectureTest.java4
-rw-r--r--cps-application/src/test/java/org/onap/cps/architecture/NcmpArchitectureTest.java8
2 files changed, 5 insertions, 7 deletions
diff --git a/cps-application/src/test/java/org/onap/cps/architecture/CpsArchitectureTest.java b/cps-application/src/test/java/org/onap/cps/architecture/CpsArchitectureTest.java
index 7e96447252..e68343b364 100644
--- a/cps-application/src/test/java/org/onap/cps/architecture/CpsArchitectureTest.java
+++ b/cps-application/src/test/java/org/onap/cps/architecture/CpsArchitectureTest.java
@@ -34,9 +34,7 @@ public class CpsArchitectureTest extends ArchitectureTestBase {
classes().that().resideInAPackage("org.onap.cps.rest..").should().onlyDependOnClassesThat()
.resideInAnyPackage(commonAndListedPackages("org.onap.cps.rest..",
"org.onap.cps.api..",
- "org.onap.cps.utils..",
- // Breaks arch rules
- "org.onap.cps.spi.."));
+ "org.onap.cps.utils.."));
@ArchTest
static final ArchRule cpsServiceApiShouldNotDependOnAnything =
diff --git a/cps-application/src/test/java/org/onap/cps/architecture/NcmpArchitectureTest.java b/cps-application/src/test/java/org/onap/cps/architecture/NcmpArchitectureTest.java
index 5d8c534e35..ecd98525f4 100644
--- a/cps-application/src/test/java/org/onap/cps/architecture/NcmpArchitectureTest.java
+++ b/cps-application/src/test/java/org/onap/cps/architecture/NcmpArchitectureTest.java
@@ -41,23 +41,23 @@ public class NcmpArchitectureTest extends ArchitectureTestBase {
.onlyDependOnClassesThat()
.resideInAnyPackage(commonAndListedPackages("org.onap.cps.ncmp.api..",
"org.onap.cps.ncmp.rest..",
+ "org.onap.cps.api..",
// Below packages are breaking the agreed dependencies
// and need to be removed from this rule.
// This will be handled in a separate user story
- "org.onap.cps.spi..",
"org.onap.cps.utils..",
"org.onap.cps.ncmp.impl.."));
@ArchTest
static final ArchRule ncmpServiceApiShouldOnlyDependOnThirdPartyPackages =
classes().that().resideInAPackage("org.onap.cps.ncmp.api..").should().onlyDependOnClassesThat()
- .resideInAnyPackage(commonAndListedPackages(// Below packages are breaking the agreed dependencies
+ .resideInAnyPackage(commonAndListedPackages("org.onap.cps.api..",
+ // Below packages are breaking the agreed dependencies
// and need to be removed from this rule.
// This will be handled in a separate user story
"org.onap.cps.ncmp.api..",
"org.onap.cps.ncmp.impl..",
"org.onap.cps.ncmp.config",
- "org.onap.cps.spi..",
"org.onap.cps.utils.."));
@ArchTest
@@ -71,13 +71,13 @@ public class NcmpArchitectureTest extends ArchitectureTestBase {
"org.onap.cps.ncmp.utils..",
"org.onap.cps.ncmp.config..",
"org.onap.cps.ncmp.exceptions..",
+ "org.onap.cps.spi.api..",
// Below packages are breaking the agreed dependencies
// and need to be removed from this rule.
// This will be handled in a separate user story
"org.onap.cps.cpspath..",
"org.onap.cps.events..",
"org.onap.cps.impl..",
- "org.onap.cps.spi..",
"org.onap.cps.utils.."));
}