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 2009/07/14 17:33:23 UTC
svn commit: r793943 [2/2] - in /xml/security/trunk: src/javax/xml/crypto/
src/javax/xml/crypto/dsig/ src/javax/xml/crypto/dsig/keyinfo/
src/javax/xml/crypto/dsig/spec/
src/org/apache/xml/security/c14n/implementations/
src/org/apache/xml/security/except...
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/c14n/implementations/AllTests.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/c14n/implementations/AllTests.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/c14n/implementations/AllTests.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/c14n/implementations/AllTests.java Tue Jul 14 15:33:19 2009
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2006-2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
package org.apache.xml.security.c14n.implementations;
import junit.framework.Test;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/c14n/implementations/UtfHelperTest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/c14n/implementations/UtfHelperTest.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/c14n/implementations/UtfHelperTest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/c14n/implementations/UtfHelperTest.java Tue Jul 14 15:33:19 2009
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2006-2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
package org.apache.xml.security.c14n.implementations;
import java.io.ByteArrayOutputStream;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/AllTests.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/AllTests.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/AllTests.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/AllTests.java Tue Jul 14 15:33:19 2009
@@ -1,5 +1,5 @@
/*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2009 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -94,8 +94,6 @@
// System.out.println(counter + " full tests took " + java.text.DecimalFormat.getInstance().format(delta / 1000.) + " seconds");
} else {
- String[] testCaseName = { "-noloading", AllTests.class.getName() };
-
try {
String lookAndFeelClass =
"com.incors.plaf.kunststoff.KunststoffLookAndFeel";
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/InteropTest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/InteropTest.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/InteropTest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/InteropTest.java Tue Jul 14 15:33:19 2009
@@ -1,5 +1,5 @@
/*
- * Copyright 2003-2004 The Apache Software Foundation.
+ * Copyright 2003-2009 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,8 +23,6 @@
import junit.framework.TestCase;
import junit.framework.TestSuite;
-import org.apache.xml.security.utils.XMLUtils;
-
/**
*
* @author $Author$
@@ -92,7 +90,6 @@
if (useTextUI) {
junit.textui.TestRunner.run(suite());
} else {
- String[] testCaseName = { "-noloading", InteropTest.class.getName() };
try {
String lookAndFeelClass =
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/TestUtils.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/TestUtils.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/TestUtils.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/TestUtils.java Tue Jul 14 15:33:19 2009
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
package org.apache.xml.security.test;
import org.apache.xml.security.utils.Constants;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/algorithms/AllTests.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/algorithms/AllTests.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/algorithms/AllTests.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/algorithms/AllTests.java Tue Jul 14 15:33:19 2009
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
package org.apache.xml.security.test.algorithms;
import junit.framework.Test;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/algorithms/SignatureAlgorithmTest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/algorithms/SignatureAlgorithmTest.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/algorithms/SignatureAlgorithmTest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/algorithms/SignatureAlgorithmTest.java Tue Jul 14 15:33:19 2009
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
package org.apache.xml.security.test.algorithms;
import java.security.KeyPairGenerator;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/c14n/implementations/Bug45961Test.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/c14n/implementations/Bug45961Test.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/c14n/implementations/Bug45961Test.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/c14n/implementations/Bug45961Test.java Tue Jul 14 15:33:19 2009
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
package org.apache.xml.security.test.c14n.implementations;
import java.io.FileInputStream;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/c14n/implementations/MockCanonicalizationMethod.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/c14n/implementations/MockCanonicalizationMethod.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/c14n/implementations/MockCanonicalizationMethod.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/c14n/implementations/MockCanonicalizationMethod.java Tue Jul 14 15:33:19 2009
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
package org.apache.xml.security.test.c14n.implementations;
import java.io.OutputStream;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/encryption/EncryptContentTest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/encryption/EncryptContentTest.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/encryption/EncryptContentTest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/encryption/EncryptContentTest.java Tue Jul 14 15:33:19 2009
@@ -1,5 +1,5 @@
/*
- * Copyright 2007 The Apache Software Foundation.
+ * Copyright 2007-2009 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -22,10 +22,7 @@
import javax.crypto.spec.DESedeKeySpec;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
-import javax.xml.transform.dom.DOMSource;
-import javax.xml.transform.stream.StreamResult;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
@@ -50,7 +47,6 @@
"</users>\n";
private DocumentBuilder db;
- private Transformer t;
private SecretKey secretKey;
public static Test suite() throws Exception {
@@ -74,7 +70,7 @@
secretKey = keyFactory.generateSecret(keySpec);
TransformerFactory tf = TransformerFactory.newInstance();
- t = tf.newTransformer();
+ tf.newTransformer();
}
public void testContentRemoved() throws Exception {
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/external/org/apache/xalan/XPathAPI/AttributeAncestorOrSelfTest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/external/org/apache/xalan/XPathAPI/AttributeAncestorOrSelfTest.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/external/org/apache/xalan/XPathAPI/AttributeAncestorOrSelfTest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/external/org/apache/xalan/XPathAPI/AttributeAncestorOrSelfTest.java Tue Jul 14 15:33:19 2009
@@ -1,5 +1,5 @@
/*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2009 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,7 +28,6 @@
import junit.framework.TestSuite;
import org.apache.xml.security.utils.Constants;
-import org.apache.xml.security.utils.XMLUtils;
import org.apache.xpath.XPathAPI;
import org.apache.xpath.objects.XObject;
import org.w3c.dom.Document;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/external/org/apache/xalan/XPathAPI/XalanBug1425Test.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/external/org/apache/xalan/XPathAPI/XalanBug1425Test.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/external/org/apache/xalan/XPathAPI/XalanBug1425Test.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/external/org/apache/xalan/XPathAPI/XalanBug1425Test.java Tue Jul 14 15:33:19 2009
@@ -1,6 +1,6 @@
/*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2009 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -32,7 +32,6 @@
import junit.framework.TestCase;
import junit.framework.TestSuite;
-import org.apache.xml.security.utils.XMLUtils;
import org.apache.xpath.XPathAPI;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
@@ -110,13 +109,6 @@
// Serialize the found nodes to System.out.
// System.out.println("<output>");
- String[] nodeTypeString = new String[]{ "", "ELEMENT", "ATTRIBUTE",
- "TEXT_NODE", "CDATA_SECTION",
- "ENTITY_REFERENCE", "ENTITY",
- "PROCESSING_INSTRUCTION",
- "COMMENT", "DOCUMENT",
- "DOCUMENT_TYPE",
- "DOCUMENT_FRAGMENT", "NOTATION" };
Node n;
while ((n = nl.nextNode()) != null) {
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/interop/InteropTest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/interop/InteropTest.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/interop/InteropTest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/interop/InteropTest.java Tue Jul 14 15:33:19 2009
@@ -1,5 +1,5 @@
/*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2009 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -25,11 +25,9 @@
import junit.framework.TestCase;
import org.apache.xml.security.keys.KeyInfo;
-import org.apache.xml.security.signature.Reference;
import org.apache.xml.security.signature.XMLSignature;
import org.apache.xml.security.test.TestUtils;
import org.apache.xml.security.utils.Constants;
-import org.apache.xml.security.utils.JavaUtils;
import org.apache.xml.security.utils.resolver.ResourceResolverSpi;
import org.apache.xpath.XPathAPI;
import org.w3c.dom.Element;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/keys/content/x509/XMLX509CertificateTest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/keys/content/x509/XMLX509CertificateTest.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/keys/content/x509/XMLX509CertificateTest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/keys/content/x509/XMLX509CertificateTest.java Tue Jul 14 15:33:19 2009
@@ -1,5 +1,5 @@
/*
- * Copyright 2008 The Apache Software Foundation.
+ * Copyright 2008-2009 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@
import java.io.File;
import java.io.FileInputStream;
-import java.security.cert.X509Certificate;
import javax.xml.parsers.*;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
@@ -66,7 +65,7 @@
(Constants.SignatureSpecNS, "X509Certificate");
XMLX509Certificate xmlCert =
new XMLX509Certificate((Element) nl.item(0), "");
- X509Certificate cert = xmlCert.getX509Certificate();
+ xmlCert.getX509Certificate();
// System.out.println(cert);
}
}
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/keys/content/x509/XMLX509SKITest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/keys/content/x509/XMLX509SKITest.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/keys/content/x509/XMLX509SKITest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/keys/content/x509/XMLX509SKITest.java Tue Jul 14 15:33:19 2009
@@ -1,5 +1,5 @@
/*
- * Copyright 1999-2007 The Apache Software Foundation.
+ * Copyright 1999-2009 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -22,7 +22,6 @@
import java.util.Collection;
import java.util.Collections;
import org.apache.xml.security.keys.content.x509.XMLX509SKI;
-import org.apache.xml.security.utils.Base64;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/resource/TestVectorResolver.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/resource/TestVectorResolver.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/resource/TestVectorResolver.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/resource/TestVectorResolver.java Tue Jul 14 15:33:19 2009
@@ -1,6 +1,6 @@
/*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2009 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -18,13 +18,10 @@
package org.apache.xml.security.test.resource;
-
-import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
-import java.io.InputStream;
import org.xml.sax.EntityResolver;
import org.xml.sax.InputSource;
@@ -124,27 +121,6 @@
}
/**
- * Method getInputSource
- *
- * @param systemId
- *
- */
- private InputStream getInputStream(String systemId) {
-
- log.debug("getInputStream(" + systemId + ")");
-
- // we don't use the file system but the ZIP resource
- // return new InputSource(new FileInputStream(systemId));
- byte result[] = (byte[]) TestVectorResolver.vectors.get(systemId);
-
- if (result == null) {
- log.fatal("requested " + systemId + " resulted in null");
- }
-
- return new ByteArrayInputStream(result);
- }
-
- /**
* Method resolveEntity
*
* @param publicId
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/AllTests.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/AllTests.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/AllTests.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/AllTests.java Tue Jul 14 15:33:19 2009
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
package org.apache.xml.security.test.signature;
import junit.framework.Test;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/CreateSignatureTest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/CreateSignatureTest.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/CreateSignatureTest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/CreateSignatureTest.java Tue Jul 14 15:33:19 2009
@@ -1,5 +1,5 @@
/*
- * Copyright 1999-2008 The Apache Software Foundation.
+ * Copyright 1999-2009 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,9 +26,6 @@
import java.security.PublicKey;
import java.security.cert.X509Certificate;
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-
import org.apache.xml.security.algorithms.SignatureAlgorithm;
import org.apache.xml.security.c14n.Canonicalizer;
import org.apache.xml.security.keys.KeyInfo;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/InvalidKeyTest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/InvalidKeyTest.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/InvalidKeyTest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/InvalidKeyTest.java Tue Jul 14 15:33:19 2009
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
package org.apache.xml.security.test.signature;
import java.io.FileInputStream;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/NoKeyInfoTest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/NoKeyInfoTest.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/NoKeyInfoTest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/NoKeyInfoTest.java Tue Jul 14 15:33:19 2009
@@ -1,5 +1,5 @@
/*
- * Copyright 2008 The Apache Software Foundation.
+ * Copyright 2008-2009 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@
import java.io.File;
import java.io.FileInputStream;
-import java.security.PublicKey;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/SignatureTest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/SignatureTest.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/SignatureTest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/SignatureTest.java Tue Jul 14 15:33:19 2009
@@ -1,3 +1,19 @@
+/*
+ * Copyright 1999-2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
package org.apache.xml.security.test.signature;
import java.io.InputStream;
@@ -9,11 +25,6 @@
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.transform.Source;
-import javax.xml.transform.Transformer;
-import javax.xml.transform.TransformerFactory;
-import javax.xml.transform.dom.DOMSource;
-import javax.xml.transform.stream.StreamResult;
import org.apache.xml.security.Init;
import org.apache.xml.security.signature.XMLSignature;
@@ -96,16 +107,6 @@
return doc;
}
- private void displayDocument(Document doc) throws Throwable {
- TransformerFactory tFactory = TransformerFactory.newInstance();
- Transformer t = tFactory.newTransformer();
- Source xmlSource = new DOMSource(doc);
- StreamResult streamResult = new StreamResult(System.out);
- t.transform(xmlSource, streamResult);
- System.out.println();
- System.out.println();
- }
-
public XMLSignature signDocument(Document doc) throws Throwable {
XMLSignature sig = new XMLSignature(doc, "",
XMLSignature.ALGO_ID_SIGNATURE_DSA);
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/X509DataTest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/X509DataTest.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/X509DataTest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/X509DataTest.java Tue Jul 14 15:33:19 2009
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
package org.apache.xml.security.test.signature;
import java.io.ByteArrayInputStream;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/XMLSignatureInputTest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/XMLSignatureInputTest.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/XMLSignatureInputTest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/XMLSignatureInputTest.java Tue Jul 14 15:33:19 2009
@@ -1,6 +1,6 @@
/*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2009 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,13 +23,6 @@
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
-import java.io.UnsupportedEncodingException;
-import java.util.Set;
-
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.TransformerException;
import junit.framework.Test;
import junit.framework.TestCase;
@@ -38,14 +31,6 @@
import org.apache.xml.security.c14n.CanonicalizationException;
import org.apache.xml.security.c14n.InvalidCanonicalizerException;
import org.apache.xml.security.signature.XMLSignatureInput;
-import org.apache.xml.security.utils.XMLUtils;
-import org.apache.xpath.CachedXPathAPI;
-import org.w3c.dom.Comment;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.NodeList;
-import org.w3c.dom.Text;
-import org.xml.sax.SAXException;
/**
@@ -180,53 +165,6 @@
static final int _nodeSetInput3NodesWithComments = _nodeSetInput3Nodes + 1;
//J+
- /**
- * Method getNodeSet1
- *
- *
- * @throws ParserConfigurationException
- * @throws TransformerException
- */
- private static Set getNodeSet1()
- throws ParserConfigurationException, TransformerException {
-
- // This should build
- DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
-
- dfactory.setValidating(false);
- dfactory.setNamespaceAware(true);
-
- DocumentBuilder db = dfactory.newDocumentBuilder();
- Document doc = db.newDocument();
- Comment c1 = doc.createComment("Small Comment Test");
-
- doc.appendChild(c1);
-
- Element root = doc.createElementNS(null, "RootElement");
- Element e1 = doc.createElementNS(null, "Element1");
- Element e2 = doc.createElementNS(null, "Element2");
- Element e3 = doc.createElementNS(null, "Element3");
- Text e3t = doc.createTextNode("Text in Element3");
-
- e3.appendChild(e3t);
- root.appendChild(e1);
- root.appendChild(e2);
- root.appendChild(e3);
- doc.appendChild(root);
-
- String s1 =
- "<!--Small Comment Test--><RootElement><Element1/><Element2/><Element3>Text in Element3</Element3></RootElement>";
-
- //XMLUtils.circumventBug2650(doc);
-
- CachedXPathAPI cXPathAPI = new CachedXPathAPI();
- NodeList nl = cXPathAPI.selectNodeList(doc,
- "(//. | //@* | //namespace::*)");
-
- return XMLUtils.convertNodelistToSet(nl);
- }
-
-
/**
* Method testIsInitialized
@@ -270,12 +208,6 @@
assertTrue("Input is not node set", !input.isNodeSet());
}
-
-
-
-
-
-
static {
org.apache.xml.security.Init.init();
}
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/XmlSecTest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/XmlSecTest.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/XmlSecTest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/signature/XmlSecTest.java Tue Jul 14 15:33:19 2009
@@ -1,5 +1,5 @@
/*
- * Copyright 2008 The Apache Software Foundation.
+ * Copyright 2008-2009 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,9 +26,6 @@
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.transform.*;
-import javax.xml.transform.dom.*;
-import javax.xml.transform.stream.*;
import org.apache.xml.security.Init;
import org.apache.xml.security.algorithms.MessageDigestAlgorithm;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/RegisterTest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/RegisterTest.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/RegisterTest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/RegisterTest.java Tue Jul 14 15:33:19 2009
@@ -1,3 +1,20 @@
+/*
+ * Copyright 1999-2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
package org.apache.xml.security.test.transforms;
import java.io.File;
@@ -37,7 +54,7 @@
Class c = ucl.loadClass
("org.apache.xml.security.test.transforms.SampleTransform");
Constructor cons = c.getConstructor(new Class[0]);
- Object o = cons.newInstance(new Object[0]);
+ cons.newInstance(new Object[0]);
// Apache code swallows the ClassNotFoundExc, so we need to
// check if the Transform has already been registered by registering
// it again and catching an AlgorithmAlreadyRegisteredExc
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/SampleTransform.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/SampleTransform.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/SampleTransform.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/SampleTransform.java Tue Jul 14 15:33:19 2009
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
package org.apache.xml.security.test.transforms;
import java.io.IOException;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/implementations/AllTests.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/implementations/AllTests.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/implementations/AllTests.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/implementations/AllTests.java Tue Jul 14 15:33:19 2009
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
package org.apache.xml.security.test.transforms.implementations;
import junit.framework.Test;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/implementations/TransformBase64DecodeTest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/implementations/TransformBase64DecodeTest.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/implementations/TransformBase64DecodeTest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/implementations/TransformBase64DecodeTest.java Tue Jul 14 15:33:19 2009
@@ -1,5 +1,5 @@
/*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2009 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -40,7 +40,6 @@
import org.apache.xml.security.transforms.Transforms;
import org.apache.xml.security.transforms.implementations.TransformBase64Decode;
import org.apache.xml.security.utils.Constants;
-import org.apache.xml.security.utils.XMLUtils;
import org.apache.xpath.XPathAPI;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
@@ -108,21 +107,6 @@
}
/**
- * Method createElement
- *
- *
- * @throws ParserConfigurationException
- */
- private static Element createElement() throws ParserConfigurationException {
-
- Document doc = TransformBase64DecodeTest.createDocument();
-
- Element element = XMLUtils.createElementInSignatureSpace(doc, Constants._TAG_TRANSFORMS);
-
- return element;
- }
-
- /**
* Method test1
*
* @throws CanonicalizationException
@@ -147,10 +131,6 @@
"VGhlIFVSSSBvZiB0aGUgdHJhbnNmb3JtIGlzIGh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1s\n"
+ "ZHNpZyNiYXNlNjQ=";
- // base64 encoded twice
- String s2 =
- "VkdobElGVlNTU0J2WmlCMGFHVWdkSEpoYm5ObWIzSnRJR2x6SUdoMGRIQTZMeTkzZDNjdWR6TXVi\n"
- + "M0puTHpJd01EQXZNRGt2ZUcxcwpaSE5wWnlOaVlYTmxOalE9";
Document doc = TransformBase64DecodeTest.createDocument();
Transforms t = new Transforms(doc);
doc.appendChild(t.getElement());
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/implementations/TransformXSLTTest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/implementations/TransformXSLTTest.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/implementations/TransformXSLTTest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/implementations/TransformXSLTTest.java Tue Jul 14 15:33:19 2009
@@ -1,5 +1,5 @@
/*
- * Copyright 1999-2007 The Apache Software Foundation.
+ * Copyright 1999-2009 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -102,8 +102,7 @@
Transform transform = Transform.getInstance
(doc1, Transforms.TRANSFORM_XSLT, transformEl.getChildNodes());
- XMLSignatureInput output =
- transform.performTransform(new XMLSignatureInput(doc2));
+ transform.performTransform(new XMLSignatureInput(doc2));
}
static {
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/implementations/Xpath2TransformationTest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/implementations/Xpath2TransformationTest.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/implementations/Xpath2TransformationTest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/transforms/implementations/Xpath2TransformationTest.java Tue Jul 14 15:33:19 2009
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
package org.apache.xml.security.test.transforms.implementations;
import java.io.ByteArrayInputStream;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/AllTests.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/AllTests.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/AllTests.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/AllTests.java Tue Jul 14 15:33:19 2009
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
package org.apache.xml.security.test.utils;
import junit.framework.Test;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/IdResolverTest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/IdResolverTest.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/IdResolverTest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/IdResolverTest.java Tue Jul 14 15:33:19 2009
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
package org.apache.xml.security.test.utils;
import java.io.ByteArrayInputStream;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/OldApiTest.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/OldApiTest.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/OldApiTest.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/OldApiTest.java Tue Jul 14 15:33:19 2009
@@ -1,3 +1,19 @@
+/*
+ * Copyright 1999-2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
package org.apache.xml.security.test.utils;
import java.io.IOException;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/resolver/AllTests.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/resolver/AllTests.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/resolver/AllTests.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/resolver/AllTests.java Tue Jul 14 15:33:19 2009
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
package org.apache.xml.security.test.utils.resolver;
import junit.framework.Test;
Modified: xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/resolver/ResolverDirectHTTP.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/resolver/ResolverDirectHTTP.java?rev=793943&r1=793942&r2=793943&view=diff
==============================================================================
--- xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/resolver/ResolverDirectHTTP.java (original)
+++ xml/security/trunk/src_unitTests/org/apache/xml/security/test/utils/resolver/ResolverDirectHTTP.java Tue Jul 14 15:33:19 2009
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
package org.apache.xml.security.test.utils.resolver;
import javax.xml.parsers.DocumentBuilderFactory;