[java-identity-provider COMMIT] /trunk/idp-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resol...

noreply at shibboleth.net noreply at shibboleth.net
Tue Jan 14 14:13:18 EST 2014


Author: scantor
Date: Tue Jan 14 14:13:18 2014
New Revision: 5197

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=5197&view=rev
Log:
Fix failing tests.

Modified:
    trunk/idp-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/ad/mapped/SourceValueParserTest.java

Modified: trunk/idp-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/ad/mapped/SourceValueParserTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/ad/mapped/SourceValueParserTest.java?rev=5197&r1=5196&r2=5197&view=diff
==============================================================================
--- trunk/idp-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/ad/mapped/SourceValueParserTest.java (original)
+++ trunk/idp-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/ad/mapped/SourceValueParserTest.java Tue Jan 14 14:13:18 2014
@@ -19,6 +19,7 @@
 
 import net.shibboleth.idp.attribute.resolver.impl.ad.mapped.SourceValue;
 import net.shibboleth.idp.attribute.resolver.spring.BaseAttributeDefinitionParserTest;
+import net.shibboleth.utilities.java.support.logic.ConstraintViolationException;
 
 import org.springframework.context.support.GenericApplicationContext;
 import org.testng.Assert;
@@ -42,7 +43,12 @@
         
         Assert.assertFalse(value.isIgnoreCase());
         Assert.assertFalse(value.isPartialMatch());
-        Assert.assertNull(value.getValue());
+        try {
+            Assert.assertNull(value.getValue());
+            Assert.fail();
+        } catch (ConstraintViolationException e) {
+            
+        }
     }
     
     @Test public void values1() {
@@ -58,6 +64,11 @@
         
         Assert.assertFalse(value.isIgnoreCase());
         Assert.assertFalse(value.isPartialMatch());
-        Assert.assertEquals(value.getValue(), "sourceValueAttributes2");
+        try {
+            Assert.assertEquals(value.getValue(), "sourceValueAttributes2");
+            Assert.fail();
+        } catch (ConstraintViolationException e) {
+            
+        }
     }
-}
+}



More information about the commits mailing list