-
Notifications
You must be signed in to change notification settings - Fork 28
Description
There is a problem running unit tests.
1.
JAXP: using thread context class loader (sun.misc.Launcher$AppClassLoader@9cab16) for search
JAXP: Looking up system property 'javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema'
JAXP: The value is 'org.apache.xerces.jaxp.validation.XMLSchemaFactory'
JAXP: createInstance(org.apache.xerces.jaxp.validation.XMLSchemaFactory)
java.lang.ClassNotFoundException: org.apache.xerces.jaxp.validation.XMLSchemaFactory
Solution is to add test depedency:
apache-xerces, xercesImpl, 2.9.1, test
a lot of warnings:
Warning: encoding "UTF-8" not supported, using UTF-8
Failed tests: testStore(org.picketlink.test.identity.federation.core.saml.v2.metadata.FileBasedMetadataConfigurationStoreUnitTestCase): Did not delete the metadata persistent file
The unit test in question:
@Test
public void testStore() throws Exception {
SAMLParser parser = new SAMLParser();
ClassLoader tcl = Thread.currentThread().getContextClassLoader();
InputStream is = tcl.getResourceAsStream("saml2/metadata/idp-entitydescriptor.xml");
assertNotNull("Inputstream not null", is);
EntityDescriptorType edt = (EntityDescriptorType) parser.parse(is);
assertNotNull(edt);
FileBasedMetadataConfigurationStore fbd = new FileBasedMetadataConfigurationStore();
fbd.persist(edt, id);
EntityDescriptorType loaded = fbd.load(id);
assertNotNull("loaded EntityDescriptorType not null", loaded);
fbd.delete(id);
try {
fbd.load(id);
fail("Did not delete the metadata persistent file");
} catch (Exception t) {
// pass
}
}
Enviroment:
Windows 7 SP1
jdk1.6.0_33 (32 bit)
Apache Maven 3.0.5
Build log:
https://gist.github.com/matejsp/5370277