Package org.fcrepo.server.security

Examples of org.fcrepo.server.security.MockPolicyParser


    }

    @Test(expected=ValidationException.class)
    public void testValidatePolicyBad()
            throws IOException, SAXException, ValidationException {
        validatePolicy(new MockPolicyParser(), POLICY_QUESTIONABLE);
    }
View Full Code Here


    }

    @Test
    public void testValidatePolicyGood()
            throws IOException, SAXException, ValidationException {
        validatePolicy(new MockPolicyParser(), POLICY_GOODENOUGH);
    }
View Full Code Here

    }

    @Test(expected=ValidationException.class)
    public void testValidateReservedPolicyBad()
            throws IOException, SAXException, ValidationException {
        validateReserved(new MockPolicyParser(),
                         new String[] { "POLICY", POLICY_QUESTIONABLE });
    }
View Full Code Here

    }

    @Test
    public void testValidateReservedPolicyGood()
            throws IOException, SAXException, ValidationException {
        validateReserved(new MockPolicyParser(),
                         new String[] { "POLICY", POLICY_GOODENOUGH });
    }
View Full Code Here

    }

    @Test(expected=ValidationException.class)
    public void testValidateReservedRelsExtBad()
            throws IOException, SAXException, ValidationException {
        validateReserved(new MockPolicyParser(),
                         new String[] { "RELS-EXT", "" });
    }
View Full Code Here

    }

    @Test(expected=ValidationException.class)
    public void testValidateReservedRelsIntBad()
            throws IOException, SAXException, ValidationException {
        validateReserved(new MockPolicyParser(),
                         new String[] { "RELS-INT", "" });
    }
View Full Code Here

                         new String[] { "RELS-INT", "" });
    }
    @Test
    public void testValidateReservedRelsExtGood()
            throws IOException, SAXException, ValidationException {
        validateReserved(new MockPolicyParser(),
                         new String[] { "RELS-EXT", RELSEXT_GOOD });
    }
View Full Code Here

    }

    @Test
    public void testValidateReservedRelsIntGood()
            throws IOException, SAXException, ValidationException {
        validateReserved(new MockPolicyParser(),
                         new String[] { "RELS-INT", RELSINT_GOOD });
    }
View Full Code Here

    }

    @Test
    public void testValidateReservedAllGood()
            throws IOException, SAXException, ValidationException {
        validateReserved(new MockPolicyParser(),
                         new String[] { "POLICY", POLICY_GOODENOUGH,
                                        "RELS-EXT", RELSEXT_GOOD,
                                        "RELS-INT", RELSINT_GOOD});
    }
View Full Code Here

TOP

Related Classes of org.fcrepo.server.security.MockPolicyParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.