main/src/test/java/org/onap/policy/pap/main/comm/msgdata/UpdateReqTest.java
/**
     * Makes an update message.
     *
     * @return a new update message
     */
Makes an update message.
@return a new update message
Makes an update message . @return a new update message
private PdpUpdate makeUpdate() {
        PdpUpdate upd = new PdpUpdate();
        upd.setDescription("update-description");
        upd.setName(MY_NAME);
        upd.setPdpGroup(MY_GROUP);
        upd.setPdpSubgroup(MY_SUBGROUP);
        ToscaPolicy policy1 = makePolicy("policy-1-a", "1.0.0");
        ToscaPolicy policy2 = makePolicy("policy-2-a", "1.1.0");
        upd.setPolicies(Arrays.asList(policy1, policy2));
        return upd;
    }
private PdpUpdate makeUpdate ( ) { PdpUpdate upd = new PdpUpdate ( ) ; upd . setDescription ( "update-description" ) ; upd . setName ( MY_NAME ) ; upd . setPdpGroup ( MY_GROUP ) ; upd . setPdpSubgroup ( MY_SUBGROUP ) ; ToscaPolicy policy1 = makePolicy ( "policy-1-a" , "1.0.0" ) ; ToscaPolicy policy2 = makePolicy ( "policy-2-a" , "1.1.0" ) ; upd . setPolicies ( Arrays . asList ( policy1 , policy2 ) ) ; return upd ; }
Makes an update message.
Makes an update message .