Author: thorsten
Date: Fri Sep 12 15:27:37 2008
New Revision: 694821

URL: http://svn.apache.org/viewvc?rev=694821&view=rev
Log:
Slim down code

Modified:
    
forrest/trunk/whiteboard/dispatcher/testing/org/apache/forrest/dispatcher/TestContract.java

Modified: 
forrest/trunk/whiteboard/dispatcher/testing/org/apache/forrest/dispatcher/TestContract.java
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/dispatcher/testing/org/apache/forrest/dispatcher/TestContract.java?rev=694821&r1=694820&r2=694821&view=diff
==============================================================================
--- 
forrest/trunk/whiteboard/dispatcher/testing/org/apache/forrest/dispatcher/TestContract.java
 (original)
+++ 
forrest/trunk/whiteboard/dispatcher/testing/org/apache/forrest/dispatcher/TestContract.java
 Fri Sep 12 15:27:37 2008
@@ -29,10 +29,10 @@
 
 public class TestContract extends TestCase {
 
+  private static final String CONTRACT_XML = "master.contract.xml";
   public void testContractWithoutParameter() throws DispatcherException, 
FileNotFoundException {
     Contract contract = new XSLContract(false);
-    String rawContract = "master.contract.xml";
-    InputStream xslStream = this.getClass().getResourceAsStream(rawContract);
+    InputStream xslStream = this.getClass().getResourceAsStream(CONTRACT_XML);
     contract.initializeFromStream(xslStream);
     // testing the transformation without parameters
     HashMap<String, String> properties = new HashMap<String, String>();
@@ -40,8 +40,7 @@
   }
   public void testContractWithParameter() throws DispatcherException, 
FileNotFoundException {
     Contract contract = new XSLContract(false);
-    String rawContract = "master.contract.xml";
-    InputStream xslStream = this.getClass().getResourceAsStream(rawContract);
+    InputStream xslStream = this.getClass().getResourceAsStream(CONTRACT_XML);
     contract.initializeFromStream(xslStream);
     HashMap<String, String> properties = new HashMap<String, String>();
     // testing the transformation with parameters
@@ -50,8 +49,7 @@
   }
   public void testContractWithXMLParameter() throws DispatcherException, 
FileNotFoundException {
     Contract contract = new XSLContract(true);
-    String rawContract = "master.contract.xml";
-    InputStream xslStream = this.getClass().getResourceAsStream(rawContract);
+    InputStream xslStream = this.getClass().getResourceAsStream(CONTRACT_XML);
     contract.initializeFromStream(xslStream);
     HashMap<String, InputSource> properties = new HashMap<String, 
InputSource>();
     // testing the transformation with parameters