X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tests%2Fstubpce%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Fstubpce%2FCompliancyCheck.java;h=ccbc5ea244c0471cbe17fd3d983a9eb4dc964adf;hb=33f02861873bc037807d40ad5f9946d87983f76b;hp=12d2b0dee6e86b9fc738779d65a108f67f72dd84;hpb=7657ad92b7ca389623fbb195e19c94148dfdfe0a;p=transportpce.git diff --git a/tests/stubpce/src/main/java/org/opendaylight/transportpce/stubpce/CompliancyCheck.java b/tests/stubpce/src/main/java/org/opendaylight/transportpce/stubpce/CompliancyCheck.java index 12d2b0dee..ccbc5ea24 100644 --- a/tests/stubpce/src/main/java/org/opendaylight/transportpce/stubpce/CompliancyCheck.java +++ b/tests/stubpce/src/main/java/org/opendaylight/transportpce/stubpce/CompliancyCheck.java @@ -9,20 +9,21 @@ package org.opendaylight.transportpce.stubpce; -import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.stubpce.rev170426.PathComputationRequestInput; +import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.servicepath.rev170426.PathComputationRequestInput; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Class to check RPCs Compliancy. + * * @author Martial Coulibaly ( martial.coulibaly@gfi.com ) on behalf of Orange * */ public class CompliancyCheck { - /* Logging. */ + /** Logging. */ private static final Logger LOG = LoggerFactory.getLogger(CompliancyCheck.class); - /* Response message from procedure. */ + /** Response message from procedure. */ private String message; private PathComputationRequestInput input; @@ -31,7 +32,7 @@ public class CompliancyCheck { input = prcInput; } - /* + /** * Check if a String is not * null and not equal to ''. * @@ -48,6 +49,14 @@ public class CompliancyCheck { } + /** + * check if service name + * or ServiceHandlerHeader + * is set in RPC request. + * + * @return true if settings is ok, + * false if not + */ public Boolean check() { Boolean result = true; if (input != null) {