Skip to Content.
Sympa Menu

mace-opensaml-users - java-opensaml2 JUnit failure - org.opensaml.saml2.metadata.validator.KeyDescriptorSchemaTest

Subject: OpenSAML user discussion

List archive

java-opensaml2 JUnit failure - org.opensaml.saml2.metadata.validator.KeyDescriptorSchemaTest


Chronological Thread 
  • From: "Clifford Johnson" <>
  • To: <>
  • Subject: java-opensaml2 JUnit failure - org.opensaml.saml2.metadata.validator.KeyDescriptorSchemaTest
  • Date: Fri, 11 Jan 2008 13:28:52 -0800

One of the test cases “implied” by this class fails with the following details:

 

org.opensaml.saml2.metadata.validator.KeyDescriptorSchemaTest#testProperValidation

 

junit.framework.AssertionFailedError: SAML object was valid : Expected success, but validation failure raised ValidationException: Invalid value for use attribute: UNSPECIFIED

    at org.opensaml.common.BaseSAMLObjectValidatorTestCase.assertValidationPass(BaseSAMLObjectValidatorTestCase.java:92)

    at org.opensaml.common.BaseSAMLObjectValidatorTestCase.assertValidationPass(BaseSAMLObjectValidatorTestCase.java:78)

    at org.opensaml.common.BaseSAMLObjectValidatorTestCase.testProperValidation(BaseSAMLObjectValidatorTestCase.java:125)

 

This failure is caused by the use of a newly constructed KeyDescriptor in a test contained in the super class of

KeyDescriptorSchemaTest -- org.opensaml.common.BaseSAMLObjectValidatorTestCase.  In this case, it seems as if the

test should *not* have been run.  I added a static suite() method to KeyDescriptorSchemaTest to explicitly identify

the tests to perform omitting the test case defined in the super class.

 

Clifford

Attachment: KeyDescriptorSchemaTest.patch
Description: KeyDescriptorSchemaTest.patch



  • java-opensaml2 JUnit failure - org.opensaml.saml2.metadata.validator.KeyDescriptorSchemaTest, Clifford Johnson, 01/11/2008

Archive powered by MHonArc 2.6.16.

Top of Page