[java-opensaml COMMIT] in /trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl: ActionAttributeDes...
noreply at shibboleth.net
noreply at shibboleth.net
Wed Jul 11 11:56:31 EDT 2012
Author: rdw
Date: Wed Jul 11 11:56:30 2012
New Revision: 3086
URL: http://svn.shibboleth.net/view/java-opensaml?rev=3086&view=rev
Log:
https://issues.shibboleth.net/jira/browse/OSJ-16 Extra coverage
Modified:
trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/ActionAttributeDesignatorTest.java
trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/ActionMatchTest.java
trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/AttributeSelectorTest.java
trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/AttributeValueTest.java
trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/EnvironmentMatchTest.java
trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/PolicySetTest.java
trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/ResourceMatchTest.java
trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/RuleTest.java
trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/SubjectMatchTest.java
Modified: trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/ActionAttributeDesignatorTest.java
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/ActionAttributeDesignatorTest.java?rev=3086&r1=3085&r2=3086&view=diff
==============================================================================
--- trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/ActionAttributeDesignatorTest.java (original)
+++ trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/ActionAttributeDesignatorTest.java Wed Jul 11 11:56:30 2012
@@ -62,6 +62,7 @@
attributeDesignator.setDataType(expectedDataType);
attributeDesignator.setAttributeId(expectedAttributeId);
attributeDesignator.setMustBePresent(null);
+ Assert.assertFalse(attributeDesignator.getMustBePresent());
assertXMLEquals(expectedDOM, attributeDesignator );
}
Modified: trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/ActionMatchTest.java
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/ActionMatchTest.java?rev=3086&r1=3085&r2=3086&view=diff
==============================================================================
--- trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/ActionMatchTest.java (original)
+++ trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/ActionMatchTest.java Wed Jul 11 11:56:30 2012
@@ -81,9 +81,14 @@
actionMatch.setMatchId(expectedMatchId);
AttributeDesignatorType attributeDesignatorType = (AttributeDesignatorType) buildXMLObject(AttributeDesignatorType.ACTION_ATTRIBUTE_DESIGNATOR_ELEMENT_NAME);
+ attributeDesignatorType.setMustBePresent(true);
+ actionMatch.setActionAttributeDesignator(attributeDesignatorType);
+
+ attributeDesignatorType = (AttributeDesignatorType) buildXMLObject(AttributeDesignatorType.ACTION_ATTRIBUTE_DESIGNATOR_ELEMENT_NAME);
attributeDesignatorType.setMustBePresent(false);
actionMatch.setActionAttributeDesignator(attributeDesignatorType);
+ actionMatch.setAttributeSelector((AttributeSelectorType) buildXMLObject(AttributeSelectorType.DEFAULT_ELEMENT_NAME));
actionMatch.setAttributeSelector((AttributeSelectorType) buildXMLObject(AttributeSelectorType.DEFAULT_ELEMENT_NAME));
actionMatch.setAttributeValue((AttributeValueType) buildXMLObject(AttributeValueType.DEFAULT_ELEMENT_NAME));
Modified: trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/AttributeSelectorTest.java
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/AttributeSelectorTest.java?rev=3086&r1=3085&r2=3086&view=diff
==============================================================================
--- trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/AttributeSelectorTest.java (original)
+++ trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/AttributeSelectorTest.java Wed Jul 11 11:56:30 2012
@@ -62,6 +62,10 @@
attributeSelector.setDataType(expectedDataType);
attributeSelector.setRequestContextPath(expectedRequestContextPath);
attributeSelector.setMustBePresentXSBoolean(null);
+ Assert.assertFalse(attributeSelector.getMustBePresent());
+ attributeSelector.setMustBePresent(true);
+ Assert.assertTrue(attributeSelector.getMustBePresent());
+ attributeSelector.setMustBePresent(null);
assertXMLEquals(expectedDOM, attributeSelector );
}
Modified: trunk/opensaml-xacml-impl/src/test/java/org/opensaml/xacml/policy/impl/AttributeValueTest.java
[... 320 lines stripped ...]
More information about the commits
mailing list