forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r703142 - /forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/testing/org/apache/forrest/dispatcher/TestContract.java
Date Thu, 09 Oct 2008 11:50:18 GMT
Author: thorsten
Date: Thu Oct  9 04:50:17 2008
New Revision: 703142

URL: http://svn.apache.org/viewvc?rev=703142&view=rev
Log:
fixing test case

Modified:
    forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/testing/org/apache/forrest/dispatcher/TestContract.java

Modified: forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/testing/org/apache/forrest/dispatcher/TestContract.java
URL: http://svn.apache.org/viewvc/forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/testing/org/apache/forrest/dispatcher/TestContract.java?rev=703142&r1=703141&r2=703142&view=diff
==============================================================================
--- forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/testing/org/apache/forrest/dispatcher/TestContract.java
(original)
+++ forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/testing/org/apache/forrest/dispatcher/TestContract.java
Thu Oct  9 04:50:17 2008
@@ -33,7 +33,7 @@
 
   private static final String CONTRACT_XML = "master.contract.xml";
   public void testContractWithoutParameter() throws DispatcherException, FileNotFoundException
{
-    Contract contract = new XSLContract(false);
+    Contract contract = new XSLContract(false, null);
     InputStream xslStream = this.getClass().getResourceAsStream(CONTRACT_XML);
     contract.initializeFromStream(xslStream);
     // testing the transformation without parameters
@@ -41,7 +41,7 @@
     contract.execute(null, properties);
   }
   public void testContractWithParameter() throws DispatcherException, FileNotFoundException
{
-    Contract contract = new XSLContract(false);
+    Contract contract = new XSLContract(false, null);
     InputStream xslStream = this.getClass().getResourceAsStream(CONTRACT_XML);
     contract.initializeFromStream(xslStream);
     Map<String, Object> properties = new HashMap<String, Object>();
@@ -50,14 +50,13 @@
     contract.execute(null, properties);
   }
   public void testContractWithXMLParameter() throws DispatcherException, FileNotFoundException
{
-    Contract contract = new XSLContract(true);
+    Contract contract = new XSLContract(true, null);
     InputStream xslStream = this.getClass().getResourceAsStream(CONTRACT_XML);
     contract.initializeFromStream(xslStream);
     Map<String, Object> properties = new HashMap<String, Object>();
     // testing the transformation with parameters
-    String valueString = "<class>"+this.getClass().getCanonicalName()+"</class>";
-    InputSource value = new InputSource(new StringReader(valueString));
-    properties.put("test-inline-xml", value);
+    String value = "<class>"+this.getClass().getCanonicalName()+"</class>";
+    properties.put("test-inline-xml", value.getBytes());
     contract.execute(null, properties);
   }
   



Mime
View raw message