You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by co...@apache.org on 2019/12/10 17:35:32 UTC
svn commit: r1871144 -
/santuario/xml-security-java/branches/2.1.x-fixes/src/test/java/org/apache/xml/security/test/dom/version/VersionTest.java
Author: coheigea
Date: Tue Dec 10 17:35:31 2019
New Revision: 1871144
URL: http://svn.apache.org/viewvc?rev=1871144&view=rev
Log:
Fixing build with latest openjdk which seems to preinstall the Santuario provider
Modified:
santuario/xml-security-java/branches/2.1.x-fixes/src/test/java/org/apache/xml/security/test/dom/version/VersionTest.java
Modified: santuario/xml-security-java/branches/2.1.x-fixes/src/test/java/org/apache/xml/security/test/dom/version/VersionTest.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/branches/2.1.x-fixes/src/test/java/org/apache/xml/security/test/dom/version/VersionTest.java?rev=1871144&r1=1871143&r2=1871144&view=diff
==============================================================================
--- santuario/xml-security-java/branches/2.1.x-fixes/src/test/java/org/apache/xml/security/test/dom/version/VersionTest.java (original)
+++ santuario/xml-security-java/branches/2.1.x-fixes/src/test/java/org/apache/xml/security/test/dom/version/VersionTest.java Tue Dec 10 17:35:31 2019
@@ -46,10 +46,14 @@ public class VersionTest {
@org.junit.Test
public void testVersion() throws Exception {
+ Provider provider = Security.getProvider("ApacheXMLDSig");
+ if (provider != null) {
+ Security.removeProvider(provider.getName());
+ }
Security.addProvider(new org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI());
- Provider provider = Security.getProvider("ApacheXMLDSig");
- assertTrue(provider != null);
+ provider = Security.getProvider("ApacheXMLDSig");
+ assertNotNull(provider);
String version = System.getProperty("product.version");
assertTrue(version != null);