Fixed incorrect unit test and corresponding bug in the DN extraction code.
[java-idp.git] / tests / edu / internet2 / middleware / shibboleth / aa / DNHostNameExtractionTests.java
index 0f364e7..640b362 100644 (file)
@@ -96,7 +96,7 @@ public class DNHostNameExtractionTests extends TestCase {
 
                try {
                        assertEquals("Round-trip handle validation failed on DN.", ShibPOSTProfile
-                                       .getHostNameFromDN(new X500Principal(dn1)), "wayf.internet2.edu");
+                                       .getHostNameFromDN(new X500Principal(dn4)), "wayf.internet2.edu");
 
                } catch (Exception e) {
                        fail("Error in test specification: " + e.getMessage());