X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=cps-application%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fcps%2Farchitecture%2FLayeredArchitectureTest.java;h=ec16ceefe880eec1cfc3cedfcf9c29e74a0a61b6;hb=ed9d179947325bbb9b81378b469341d023b46cd8;hp=8448136fea80604bc85ce849b587e44fde76d896;hpb=1d9dae0c4be8a49d62e022da518cd8e95dc35ea5;p=cps.git 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 8448136fea..ec16ceefe8 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 @@ -44,6 +44,7 @@ public class LayeredArchitectureTest { private static final String NOTIFICATION_PACKAGE = "org.onap.cps.notification.."; private static final String CPS_UTILS_PACKAGE = "org.onap.cps.utils.."; private static final String NCMP_INIT_PACKAGE = "org.onap.cps.ncmp.init.."; + private static final String CPS_CACHE_PACKAGE = "org.onap.cps.cache.."; @ArchTest static final ArchRule restControllerShouldOnlyDependOnRestController = @@ -55,7 +56,9 @@ public class LayeredArchitectureTest { 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, CPS_UTILS_PACKAGE, NCMP_INIT_PACKAGE)); + NCMP_SERVICE_PACKAGE, YANG_SCHEMA_PACKAGE, NOTIFICATION_PACKAGE, CPS_UTILS_PACKAGE, NCMP_INIT_PACKAGE, + CPS_CACHE_PACKAGE)); + @ArchTest static final ArchRule repositoryShouldOnlyBeDependedOnByServicesAndRepository =