cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r523807 - /cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/components/source/impl/ZipSourceTestCase.java
Date Thu, 29 Mar 2007 19:22:48 GMT
Author: joerg
Date: Thu Mar 29 12:22:48 2007
New Revision: 523807

URL: http://svn.apache.org/viewvc?view=rev&rev=523807
Log:
fix for the fix for the fix ... sorry, stupid me :(

Modified:
    cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/components/source/impl/ZipSourceTestCase.java

Modified: cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/components/source/impl/ZipSourceTestCase.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/components/source/impl/ZipSourceTestCase.java?view=diff&rev=523807&r1=523806&r2=523807
==============================================================================
--- cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/components/source/impl/ZipSourceTestCase.java
(original)
+++ cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/components/source/impl/ZipSourceTestCase.java
Thu Mar 29 12:22:48 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);
         }
     }
     



Mime
View raw message