main/src/test/java/org/onap/policy/pap/main/rest/e2e/End2EndBase.java
/**
     * Adds PDP groups to the DB.
     *
     * @param jsonFile name of the JSON file specifying the data to be loaded
     * @throws PfModelException if a DAO error occurs
     */
Adds PDP groups to the DB.
@param jsonFile name of the JSON file specifying the data to be loaded
@throws PfModelException if a DAO error occurs
Adds PDP groups to the DB . @param jsonFile name of the JSON file specifying the data to be loaded @throws PfModelException if a DAO error occurs
public static void addGroups(String jsonFile) throws PfModelException {
        PdpGroups groups = loadJsonFile(jsonFile, PdpGroups.class);
        ValidationResult result = groups.validatePapRest();
        if (!result.isValid()) {
            throw new PolicyPapRuntimeException("cannot init DB groups from " + jsonFile + ":\n" + result.getResult());
        }
        dbConn.createPdpGroups(groups.getGroups());
    }
public static void addGroups ( String jsonFile ) throws PfModelException { PdpGroups groups = loadJsonFile ( jsonFile , PdpGroups . class ) ; ValidationResult result = groups . validatePapRest ( ) ; if ( ! result . isValid ( ) ) { throw new PolicyPapRuntimeException ( "cannot init DB groups from " + jsonFile + ":\n" + result . getResult ( ) ) ; } dbConn . createPdpGroups ( groups . getGroups ( ) ) ; }
Adds PDP groups to the DB.
Adds PDP groups to the DB .