You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by ra...@apache.org on 2005/05/22 12:38:22 UTC
cvs commit: xml-security/src_unitTests/org/apache/xml/security/test/signature XMLSignatureInputTest.java
raul 2005/05/22 03:38:22
Modified: src_unitTests/org/apache/xml/security/test/signature
XMLSignatureInputTest.java
Log:
Remove some tests of methods removed.
Revision Changes Path
1.17 +1 -86 xml-security/src_unitTests/org/apache/xml/security/test/signature/XMLSignatureInputTest.java
Index: XMLSignatureInputTest.java
===================================================================
RCS file: /home/cvs/xml-security/src_unitTests/org/apache/xml/security/test/signature/XMLSignatureInputTest.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- XMLSignatureInputTest.java 2 Apr 2005 19:16:49 -0000 1.16
+++ XMLSignatureInputTest.java 22 May 2005 10:38:22 -0000 1.17
@@ -226,38 +226,7 @@
return XMLUtils.convertNodelistToSet(nl);
}
- /**
- * Method testSetNodeSetGetOctetStream1
- *
- * @throws CanonicalizationException
- * @throws IOException
- * @throws InvalidCanonicalizerException
- * @throws ParserConfigurationException
- * @throws SAXException
- * @throws TransformerException
- * @throws UnsupportedEncodingException
- */
- public static void testSetNodeSetGetOctetStream1()
- throws IOException, UnsupportedEncodingException,
- ParserConfigurationException, SAXException,
- CanonicalizationException, InvalidCanonicalizerException,
- TransformerException {
-
- XMLSignatureInput input = new XMLSignatureInput(getNodeSet1());
- String definedWithoutComments =
- "<RootElement><Element1></Element1><Element2></Element2><Element3>Text in Element3</Element3></RootElement>";
-
- {
-
- // input.setCanonicalizerURI(Canonicalizer.ALGO_ID_C14N_OMIT_COMMENTS);
- String resultWithoutComments = new String(input.getBytes(), "UTF-8");
-
- /* FileOutputStream fos = new FileOutputStream ("xResult.xml");
- fos.write(resultWithoutComments.getBytes()); */
- assertTrue("testSetNodeSetGetOctetStream(false)",
- resultWithoutComments.equals(definedWithoutComments));
- }
- }
+
/**
* Method testIsInitialized
@@ -301,65 +270,11 @@
assertTrue("Input is not node set", !input.isNodeSet());
}
- /**
- * Method testIsInitializedWithNodeSet
- *
- * @throws CanonicalizationException
- * @throws IOException
- * @throws ParserConfigurationException
- * @throws SAXException
- * @throws TransformerException
- * @throws UnsupportedEncodingException
- */
- public static void testIsInitializedWithNodeSet()
- throws IOException, UnsupportedEncodingException,
- ParserConfigurationException, SAXException,
- CanonicalizationException, TransformerException {
- XMLSignatureInput input = new XMLSignatureInput(getNodeSet1());
- assertTrue("Input is initialized", input.isInitialized());
- }
- /**
- * Method testNodeSetIsNotOctetStream
- *
- * @throws CanonicalizationException
- * @throws IOException
- * @throws ParserConfigurationException
- * @throws SAXException
- * @throws TransformerException
- * @throws UnsupportedEncodingException
- */
- public static void testNodeSetIsNotOctetStream()
- throws IOException, UnsupportedEncodingException,
- ParserConfigurationException, SAXException,
- CanonicalizationException, TransformerException {
-
- XMLSignatureInput input = new XMLSignatureInput(getNodeSet1());
-
- assertTrue("Input is not octet stream", !input.isOctetStream());
- }
- /**
- * Method testNodeSetIsNodeSet
- *
- * @throws CanonicalizationException
- * @throws IOException
- * @throws ParserConfigurationException
- * @throws SAXException
- * @throws TransformerException
- * @throws UnsupportedEncodingException
- */
- public static void testNodeSetIsNodeSet()
- throws IOException, UnsupportedEncodingException,
- ParserConfigurationException, SAXException,
- CanonicalizationException, TransformerException {
-
- XMLSignatureInput input = new XMLSignatureInput(getNodeSet1());
- assertTrue("Input is node set", input.isNodeSet());
- }
static {
org.apache.xml.security.Init.init();