You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by jo...@apache.org on 2007/03/29 21:22:44 UTC
svn commit: r523805 -
/cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/components/source/impl/ZipSourceTestCase.java
Author: joerg
Date: Thu Mar 29 12:22:43 2007
New Revision: 523805
URL: http://svn.apache.org/viewvc?view=rev&rev=523805
Log:
fix for the fix for the fix ... sorry, stupid me :(
Modified:
cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/components/source/impl/ZipSourceTestCase.java
Modified: cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/components/source/impl/ZipSourceTestCase.java
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/components/source/impl/ZipSourceTestCase.java?view=diff&rev=523805&r1=523804&r2=523805
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/components/source/impl/ZipSourceTestCase.java (original)
+++ cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/components/source/impl/ZipSourceTestCase.java Thu Mar 29 12:22:43 2007
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.apache.cocoon.components.source.impl;
import org.apache.avalon.framework.service.ServiceException;
@@ -11,7 +27,8 @@
public class ZipSourceTestCase extends ContainerTestCase {
public void testURIHandling() throws Exception {
- String zipSourceUri = "zip:file://test.zip!/test.xml";
+ final String zipSourceUri = "zip:file://test.zip!/test.xml";
+ final String brokenMacOsXSourceUri = "zip:file:/test.zip!/test.xml";
Source zipSource;
SourceResolver resolver = null;
try {
@@ -34,7 +51,7 @@
// removed after an update of Excalibur source resolve
// - https://issues.apache.org/jira/browse/COCOON-2022
// - http://thread.gmane.org/gmane.comp.apache.excalibur.devel/2107
- assertEquals("Uri is wrong.", zipSourceUri.substring(0, index + 6).concat(zipSourceUri.substring(index + 7)), actualZipSourceUri);
+ assertEquals("Uri is wrong.", brokenMacOsXSourceUri, actualZipSourceUri);
}
}