diff options
author | aditya puthuparambil <aditya.puthuparambil@bell.ca> | 2022-02-02 10:51:58 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-02-02 10:51:58 +0000 |
commit | e40ad3de6b58e3f421f29e4550e35adebd38abe6 (patch) | |
tree | 20294305e5ac24e913b3b09b60ba4e67286a4caf /cps-application | |
parent | d72b27b95704803468f7812602b66220e2c71c7d (diff) | |
parent | 909a850a66c50eaff34e3c711f657ee12775d249 (diff) |
Merge "[TECHDEBT] Align CPS Core REST API Specification and Implementation"
Diffstat (limited to 'cps-application')
-rw-r--r-- | cps-application/src/test/java/org/onap/cps/architecture/LayeredArchitectureTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cps-application/src/test/java/org/onap/cps/architecture/LayeredArchitectureTest.java b/cps-application/src/test/java/org/onap/cps/architecture/LayeredArchitectureTest.java index bc5ad18963..817bd58351 100644 --- a/cps-application/src/test/java/org/onap/cps/architecture/LayeredArchitectureTest.java +++ b/cps-application/src/test/java/org/onap/cps/architecture/LayeredArchitectureTest.java @@ -42,6 +42,7 @@ public class LayeredArchitectureTest { private static final String SPI_REPOSITORY_PACKAGE = "org.onap.cps.spi.repository.."; private static final String YANG_SCHEMA_PACKAGE = "org.onap.cps.yang.."; private static final String NOTIFICATION_PACKAGE = "org.onap.cps.notification.."; + private static final String CPS_UTILS_PACKAGE = "org.onap.cps.utils.."; @ArchTest static final ArchRule restControllerShouldOnlyDependOnRestController = @@ -49,11 +50,11 @@ public class LayeredArchitectureTest { .resideInAPackage(REST_CONTROLLER_PACKAGE); @ArchTest - static final ArchRule apiOrSpiServiceShouldOnlyBeDependedOnByControllerAndServices = + static final ArchRule apiOrSpiServiceShouldOnlyBeDependedOnByControllerAndServicesAndCommonUtilityPackages = freeze(classes().that().resideInAPackage(API_SERVICE_PACKAGE) .or().resideInAPackage(SPI_SERVICE_PACKAGE).should().onlyHaveDependentClassesThat() .resideInAnyPackage(REST_CONTROLLER_PACKAGE, API_SERVICE_PACKAGE, SPI_SERVICE_PACKAGE, NCMP_REST_PACKAGE, - NCMP_SERVICE_PACKAGE, YANG_SCHEMA_PACKAGE, NOTIFICATION_PACKAGE)); + NCMP_SERVICE_PACKAGE, YANG_SCHEMA_PACKAGE, NOTIFICATION_PACKAGE, CPS_UTILS_PACKAGE)); @ArchTest static final ArchRule repositoryShouldOnlyBeDependedOnByServicesAndRepository = |