Author: reinhard
Date: Mon Oct  4 06:08:39 2004
New Revision: 51890

Modified:
   
cocoon/whiteboard/block-deployer/test/junit/org/apache/cocoon/blockdeployer/Constants.java
   
cocoon/whiteboard/block-deployer/test/junit/org/apache/cocoon/blockdeployer/repository/FilesystemLocatorTest.java
Log:
- work on XML mappings
- some refactorings

Modified: 
cocoon/whiteboard/block-deployer/test/junit/org/apache/cocoon/blockdeployer/Constants.java
==============================================================================
--- 
cocoon/whiteboard/block-deployer/test/junit/org/apache/cocoon/blockdeployer/Constants.java
  (original)
+++ 
cocoon/whiteboard/block-deployer/test/junit/org/apache/cocoon/blockdeployer/Constants.java
  Mon Oct  4 06:08:39 2004
@@ -36,5 +36,8 @@
     public static final String UNAVAILABLE_INVALID_BLOCKID = 
"http://mycompany.com/invalid/1.0.0";;
     public static final String UNAVAILABLE_INVALID_BLOCKPATH = 
"/mycompany.com/invalid/1.0.0";
     public static final String UNAVAILABLE_INVALID_BLOCKFILE = "invalid.cob";
+    
+    // sample wiring
+    public static final String WIRING_FILE = 
"test/sample-repositories/application-server/WEB-INF/blocks/wiring.xml";
 
 }

Modified: 
cocoon/whiteboard/block-deployer/test/junit/org/apache/cocoon/blockdeployer/repository/FilesystemLocatorTest.java
==============================================================================
--- 
cocoon/whiteboard/block-deployer/test/junit/org/apache/cocoon/blockdeployer/repository/FilesystemLocatorTest.java
   (original)
+++ 
cocoon/whiteboard/block-deployer/test/junit/org/apache/cocoon/blockdeployer/repository/FilesystemLocatorTest.java
   Mon Oct  4 06:08:39 2004
@@ -32,7 +32,7 @@
  */
 public class FilesystemLocatorTest extends TestCase {
 
-    public final void testFilesystemLocator() {
+    public final void testFilesystemLocator() throws Exception {
 
         // this path is not available
         try {
@@ -56,7 +56,8 @@
         try {
             remoteBlock = 
filesystemLocator.getBlock(Constants.AVAILABLE_VALID_WEBMAIL1343_BLOCKID);
         } catch(Exception e) {
-            fail("Testrepository should be found!");
+            // test fails because this should work (maybe a problem with the 
mapping)
+            throw e;
         }
  
         // FIXME this test has to move into RemoteBlockFactoryTest (it 
actually tests the XML mapping of Castor)

Reply via email to