[java-identity-provider COMMIT] /trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/profile/logic/DefaultNameI...

noreply at shibboleth.net noreply at shibboleth.net
Thu May 1 20:07:21 EDT 2014


Author: scantor
Date: Thu May  1 20:07:21 2014
New Revision: 5821

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=5821&view=rev
Log:
Missed a test.

Modified:
    trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/profile/logic/DefaultNameIdentifierFormatStrategyTest.java

Modified: trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/profile/logic/DefaultNameIdentifierFormatStrategyTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/profile/logic/DefaultNameIdentifierFormatStrategyTest.java?rev=5821&r1=5820&r2=5821&view=diff
==============================================================================
--- trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/profile/logic/DefaultNameIdentifierFormatStrategyTest.java (original)
+++ trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/profile/logic/DefaultNameIdentifierFormatStrategyTest.java Thu May  1 20:07:21 2014
@@ -80,13 +80,13 @@
     public void testNoConfiguration() {
         final ProfileRequestContext context = new ProfileRequestContext();
         final List<String> formats = strategy.apply(context);
-        Assert.assertTrue(formats.isEmpty());
+        Assert.assertEquals(formats, Collections.singletonList(NameID.UNSPECIFIED));
     }
 
     @Test
     public void testNoFormats() {
         final List<String> formats = strategy.apply(prc);
-        Assert.assertTrue(formats.isEmpty());
+        Assert.assertEquals(formats, Collections.singletonList(NameID.UNSPECIFIED));
     }
     
     @Test



More information about the commits mailing list