cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r189596 - in /cocoon/trunk/src/test/org/apache/cocoon: SitemapComponentTestCase.java transformation/encodeurl-input-2.xml transformation/encodeurl-result-2.xml
Date Wed, 08 Jun 2005 15:41:35 GMT
Author: bdelacretaz
Date: Wed Jun  8 08:41:33 2005
New Revision: 189596

URL: http://svn.apache.org/viewcvs?rev=189596&view=rev
Log:
Created tests for ElementAttributeMatching before refactoring it

Modified:
    cocoon/trunk/src/test/org/apache/cocoon/SitemapComponentTestCase.java
    cocoon/trunk/src/test/org/apache/cocoon/transformation/encodeurl-input-2.xml
    cocoon/trunk/src/test/org/apache/cocoon/transformation/encodeurl-result-2.xml

Modified: cocoon/trunk/src/test/org/apache/cocoon/SitemapComponentTestCase.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/test/org/apache/cocoon/SitemapComponentTestCase.java?rev=189596&r1=189595&r2=189596&view=diff
==============================================================================
--- cocoon/trunk/src/test/org/apache/cocoon/SitemapComponentTestCase.java (original)
+++ cocoon/trunk/src/test/org/apache/cocoon/SitemapComponentTestCase.java Wed Jun  8 08:41:33
2005
@@ -624,7 +624,7 @@
             assertionsource = resolver.resolveURI(source);
             assertNotNull("Test lookup of assertion source",
                           assertionsource);
-            assertTrue("Test if source exist", assertionsource.exists());
+            assertTrue("Source '" + assertionsource.getURI() + "' must exist", assertionsource.exists());
 
             DOMBuilder builder = new DOMBuilder();
             assertNotNull("Test if inputstream of the assertion source is not null",

Modified: cocoon/trunk/src/test/org/apache/cocoon/transformation/encodeurl-input-2.xml
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/test/org/apache/cocoon/transformation/encodeurl-input-2.xml?rev=189596&r1=189595&r2=189596&view=diff
==============================================================================
--- cocoon/trunk/src/test/org/apache/cocoon/transformation/encodeurl-input-2.xml (original)
+++ cocoon/trunk/src/test/org/apache/cocoon/transformation/encodeurl-input-2.xml Wed Jun 
8 08:41:33 2005
@@ -5,4 +5,7 @@
   <a>A</a>
   <a b="c">d</a>
   <a href="x">x</a>
+  <img src="img/src must not be encoded"/>
+  <a href="href must be encoded"/>
+  <form action="action must be encoded"/>
 </root>

Modified: cocoon/trunk/src/test/org/apache/cocoon/transformation/encodeurl-result-2.xml
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/test/org/apache/cocoon/transformation/encodeurl-result-2.xml?rev=189596&r1=189595&r2=189596&view=diff
==============================================================================
--- cocoon/trunk/src/test/org/apache/cocoon/transformation/encodeurl-result-2.xml (original)
+++ cocoon/trunk/src/test/org/apache/cocoon/transformation/encodeurl-result-2.xml Wed Jun
 8 08:41:33 2005
@@ -5,4 +5,7 @@
   <a>A</a>
   <a b="c">d</a>
   <a href="x?JSESSIONID=MockSession">x</a>
+  <img src="img/src must not be encoded"/>
+  <a href="href must be encoded?JSESSIONID=MockSession"/>
+  <form action="action must be encoded?JSESSIONID=MockSession"/>
 </root>



Mime
View raw message