cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r677194 - in /cocoon/whiteboard/corona/trunk/corona-pipeline/src: main/java/org/apache/cocoon/corona/pipeline/util/ test/java/org/apache/cocoon/corona/pipeline/util/
Date Wed, 16 Jul 2008 08:34:18 GMT
Author: reinhard
Date: Wed Jul 16 01:34:18 2008
New Revision: 677194

URL: http://svn.apache.org/viewvc?rev=677194&view=rev
Log:
rename StringTransformation into TransformationUtils

Added:
    cocoon/whiteboard/corona/trunk/corona-pipeline/src/main/java/org/apache/cocoon/corona/pipeline/util/TransformationUtils.java
  (contents, props changed)
      - copied, changed from r677192, cocoon/whiteboard/corona/trunk/corona-pipeline/src/main/java/org/apache/cocoon/corona/pipeline/util/StringTransformation.java
    cocoon/whiteboard/corona/trunk/corona-pipeline/src/test/java/org/apache/cocoon/corona/pipeline/util/TransformationUtilsTest.java
  (contents, props changed)
      - copied, changed from r677192, cocoon/whiteboard/corona/trunk/corona-pipeline/src/test/java/org/apache/cocoon/corona/pipeline/util/StringTransformationTest.java
Removed:
    cocoon/whiteboard/corona/trunk/corona-pipeline/src/main/java/org/apache/cocoon/corona/pipeline/util/StringTransformation.java
    cocoon/whiteboard/corona/trunk/corona-pipeline/src/test/java/org/apache/cocoon/corona/pipeline/util/StringTransformationTest.java

Copied: cocoon/whiteboard/corona/trunk/corona-pipeline/src/main/java/org/apache/cocoon/corona/pipeline/util/TransformationUtils.java
(from r677192, cocoon/whiteboard/corona/trunk/corona-pipeline/src/main/java/org/apache/cocoon/corona/pipeline/util/StringTransformation.java)
URL: http://svn.apache.org/viewvc/cocoon/whiteboard/corona/trunk/corona-pipeline/src/main/java/org/apache/cocoon/corona/pipeline/util/TransformationUtils.java?p2=cocoon/whiteboard/corona/trunk/corona-pipeline/src/main/java/org/apache/cocoon/corona/pipeline/util/TransformationUtils.java&p1=cocoon/whiteboard/corona/trunk/corona-pipeline/src/main/java/org/apache/cocoon/corona/pipeline/util/StringTransformation.java&r1=677192&r2=677194&rev=677194&view=diff
==============================================================================
--- cocoon/whiteboard/corona/trunk/corona-pipeline/src/main/java/org/apache/cocoon/corona/pipeline/util/StringTransformation.java
(original)
+++ cocoon/whiteboard/corona/trunk/corona-pipeline/src/main/java/org/apache/cocoon/corona/pipeline/util/TransformationUtils.java
Wed Jul 16 01:34:18 2008
@@ -35,7 +35,7 @@
  * 
  * NOTE: Exception handling needs to be discussed and will probably change.
  */
-public abstract class StringTransformation {
+public abstract class TransformationUtils {
 
     /**
      * Transform an XML string by using XSLT.

Propchange: cocoon/whiteboard/corona/trunk/corona-pipeline/src/main/java/org/apache/cocoon/corona/pipeline/util/TransformationUtils.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/whiteboard/corona/trunk/corona-pipeline/src/main/java/org/apache/cocoon/corona/pipeline/util/TransformationUtils.java
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: cocoon/whiteboard/corona/trunk/corona-pipeline/src/main/java/org/apache/cocoon/corona/pipeline/util/TransformationUtils.java
------------------------------------------------------------------------------
    svn:mergeinfo = 

Propchange: cocoon/whiteboard/corona/trunk/corona-pipeline/src/main/java/org/apache/cocoon/corona/pipeline/util/TransformationUtils.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Copied: cocoon/whiteboard/corona/trunk/corona-pipeline/src/test/java/org/apache/cocoon/corona/pipeline/util/TransformationUtilsTest.java
(from r677192, cocoon/whiteboard/corona/trunk/corona-pipeline/src/test/java/org/apache/cocoon/corona/pipeline/util/StringTransformationTest.java)
URL: http://svn.apache.org/viewvc/cocoon/whiteboard/corona/trunk/corona-pipeline/src/test/java/org/apache/cocoon/corona/pipeline/util/TransformationUtilsTest.java?p2=cocoon/whiteboard/corona/trunk/corona-pipeline/src/test/java/org/apache/cocoon/corona/pipeline/util/TransformationUtilsTest.java&p1=cocoon/whiteboard/corona/trunk/corona-pipeline/src/test/java/org/apache/cocoon/corona/pipeline/util/StringTransformationTest.java&r1=677192&r2=677194&rev=677194&view=diff
==============================================================================
--- cocoon/whiteboard/corona/trunk/corona-pipeline/src/test/java/org/apache/cocoon/corona/pipeline/util/StringTransformationTest.java
(original)
+++ cocoon/whiteboard/corona/trunk/corona-pipeline/src/test/java/org/apache/cocoon/corona/pipeline/util/TransformationUtilsTest.java
Wed Jul 16 01:34:18 2008
@@ -25,10 +25,10 @@
 import org.apache.cocoon.corona.pipeline.PipelineTest;
 import org.custommonkey.xmlunit.Diff;
 
-public class StringTransformationTest extends TestCase {
+public class TransformationUtilsTest extends TestCase {
 
     public void testStringTransformation() throws Exception {
-        String result = StringTransformation.transform("<x>test</x>", PipelineTest.class.getClassLoader().getResource(
+        String result = TransformationUtils.transform("<x>test</x>", PipelineTest.class.getClassLoader().getResource(
                 "test.xslt"));
         Diff diff = new Diff("<?xml version=\"1.0\" encoding=\"UTF-8\"?><p></p>",
result);
         assertTrue("XSL transformation didn't work as expected " + diff, diff.identical());
@@ -37,7 +37,7 @@
     public void testStringTransformationWithParameter() throws Exception {
         Map<String, Object> params = new HashMap<String, Object>();
         params.put("myParam", "abc");
-        String result = StringTransformation.transform("<x>test</x>", params,
PipelineTest.class.getClassLoader()
+        String result = TransformationUtils.transform("<x>test</x>", params,
PipelineTest.class.getClassLoader()
                 .getResource("test.xslt"));
         Diff diff = new Diff("<?xml version=\"1.0\" encoding=\"UTF-8\"?><p>abc</p>",
result);
         assertTrue("XSL transformation didn't work as expected " + diff, diff.identical());
@@ -47,7 +47,7 @@
     public void testStringTransformationWithProperties() throws Exception {
         Properties props = new Properties();
         props.put("encoding", "iso-8859-1");
-        String result = StringTransformation.transform("<x>test</x>", props,
PipelineTest.class.getClassLoader()
+        String result = TransformationUtils.transform("<x>test</x>", props, PipelineTest.class.getClassLoader()
                 .getResource("test.xslt"));
         Diff diff = new Diff("<?xml version=\"1.0\" encoding=\"iso-8859-1\"?><p/>",
result);
         assertTrue("XSL transformation didn't work as expected " + diff, diff.identical());
@@ -59,7 +59,7 @@
         props.put("encoding", "iso-8859-1");
         Map<String, Object> params = new HashMap<String, Object>();
         params.put("myParam", "abc");
-        String result = StringTransformation.transform("<x>test</x>", params,
props, PipelineTest.class
+        String result = TransformationUtils.transform("<x>test</x>", params,
props, PipelineTest.class
                 .getClassLoader().getResource("test.xslt"));
         Diff diff = new Diff("<?xml version=\"1.0\" encoding=\"iso-8859-1\"?><p>abc</p>",
result);
         assertTrue("XSL transformation didn't work as expected " + diff, diff.identical());

Propchange: cocoon/whiteboard/corona/trunk/corona-pipeline/src/test/java/org/apache/cocoon/corona/pipeline/util/TransformationUtilsTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/whiteboard/corona/trunk/corona-pipeline/src/test/java/org/apache/cocoon/corona/pipeline/util/TransformationUtilsTest.java
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: cocoon/whiteboard/corona/trunk/corona-pipeline/src/test/java/org/apache/cocoon/corona/pipeline/util/TransformationUtilsTest.java
------------------------------------------------------------------------------
    svn:mergeinfo = 

Propchange: cocoon/whiteboard/corona/trunk/corona-pipeline/src/test/java/org/apache/cocoon/corona/pipeline/util/TransformationUtilsTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message