Author: reinhard Date: Sun Oct 10 05:16:42 2004 New Revision: 54251 Modified: cocoon/whiteboard/block-deployer/test/junit/org/apache/cocoon/blockdeployer/utils/FilesystemUtilsTest.java Log: make test compile and run again
Modified: cocoon/whiteboard/block-deployer/test/junit/org/apache/cocoon/blockdeployer/utils/FilesystemUtilsTest.java ============================================================================== --- cocoon/whiteboard/block-deployer/test/junit/org/apache/cocoon/blockdeployer/utils/FilesystemUtilsTest.java (original) +++ cocoon/whiteboard/block-deployer/test/junit/org/apache/cocoon/blockdeployer/utils/FilesystemUtilsTest.java Sun Oct 10 05:16:42 2004 @@ -84,7 +84,7 @@ public final void testFileLookupWithNullArguments() { try { - File x = LocatorUtils.getCobAsFile(null, null); + File x = LocatorUtils.getBlockAsFile(null, null); fail("If null arguments are passed, an exception has to be thrown."); } catch(FileNotFoundException fnfe) { fail("Wrong exception thrown!"); @@ -97,7 +97,7 @@ try { File cobFile = new File(Constants.VALID_LOCATION_1 + Constants.AVAILABLE_VALID_WEBMAIL1343_BLOCKPATH + "/" + Constants.AVAILABLE_VALID_WEBMAIL1343_BLOCKFILE); - File resultFile = LocatorUtils.getCobAsFile(new File(Constants.VALID_LOCATION_1), Constants.AVAILABLE_VALID_WEBMAIL1343_BLOCKPATH); + File resultFile = LocatorUtils.getBlockAsFile(new File(Constants.VALID_LOCATION_1), Constants.AVAILABLE_VALID_WEBMAIL1343_BLOCKPATH); assertEquals(cobFile.getAbsolutePath(), resultFile.getAbsolutePath()); } catch(FileNotFoundException fnfe) { fail("The block " + Constants.AVAILABLE_VALID_WEBMAIL1343_BLOCKPATH + " should be found in repository " + Constants.VALID_LOCATION_1); @@ -107,14 +107,14 @@ public final void testUnavailableFileLookups() { // unavailable block try { - File x = LocatorUtils.getCobAsFile(new File(Constants.VALID_LOCATION_1), Constants.AVAILABLE_INVALID_SAMPLE_BLOCKID); + File x = LocatorUtils.getBlockAsFile(new File(Constants.VALID_LOCATION_1), Constants.AVAILABLE_INVALID_SAMPLE_BLOCKID); fail("If a block isn't found in a valid repository, a FileNotFoundException has to be thrown"); } catch(FileNotFoundException fnfe) { // test passed } // unavailable repository try { - File x = LocatorUtils.getCobAsFile(new File(Constants.INVALID_LOCATION), Constants.AVAILABLE_VALID_WEBMAIL1343_BLOCKPATH); + File x = LocatorUtils.getBlockAsFile(new File(Constants.INVALID_LOCATION), Constants.AVAILABLE_VALID_WEBMAIL1343_BLOCKPATH); fail("A non-existing repository can't return blocks!"); } catch(FileNotFoundException fnfe) { // test passed