One more, .java is stripped as well, it appears. This is the AddParametersTest.java mentioned below. It is now AddParametersTest.txt
Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com >>> [EMAIL PROTECTED] 4/4/03 12:33:26 PM >>> One more try, all files as .txt What is the best way to send a .zip file? Actually, I've attached the file that was in the zip as AddParametersTest.java It should go in j-t-c/util/test/org/apache/tomcat/util/http Nothing from /test down currently exists in the util dir. It looks like my previous submissions on this list also did not show up. I should have checked more carefully. I've also attached my patch for the minor type in SoTask.java Sorry for the mess. Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com >>> [EMAIL PROTECTED] 4/4/03 12:17:48 PM >>> Jeff Tulley wrote: > Which? All of them? I had 3 attachments with the extension ".patch" (I > could rename to .txt, though .patch has worked in the past I thought). > And, 1 zip file that I renamed to test.zip.txt > > Please let me know which if any were visible, and the best way to send > a zip file. The .zip is not valid, and the 3 other attachements are not there. Remy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
/* * ==================================================================== * * The Apache Software License, Version 1.1 * * Copyright (c) 2003 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, if * any, must include the following acknowlegement: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowlegement may appear in the software itself, * if and wherever such third-party acknowlegements normally appear. * * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software * Foundation" must not be used to endorse or promote products derived * from this software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache" * nor may "Apache" appear in their names without prior written * permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * * [Additional notices, if required by prior licensing conditions] * */ package org.apache.tomcat.util.http; import java.util.Enumeration; import junit.framework.Assert; import junit.framework.TestCase; public class AddParametersTest extends TestCase { /** * Constructor for AddParametersTest. * @param arg0 */ public AddParametersTest(String arg0) { super(arg0); } public static void main(String[] args) { junit.textui.TestRunner.run(AddParametersTest.class); } public void testAddParameterValuesNullKey() { Parameters params = new Parameters(); Enumeration preEnum = params.getParameterNames(); while (preEnum.hasMoreElements()) { Assert.fail("Should have been empty"); } params.addParameterValues(null, new String[] {"Some Value"}); Enumeration afterEnum = params.getParameterNames(); while (afterEnum.hasMoreElements()) { Assert.fail("Should have been empty"); } } public void testAddNewParameterValues() { Parameters params = new Parameters(); Enumeration preEnum = params.getParameterNames(); while (preEnum.hasMoreElements()) { Assert.fail("Should have been empty"); } params.addParameterValues("SomeKey", new String[] {"Some Value"}); Enumeration afterEnum = params.getParameterNames(); while (afterEnum.hasMoreElements()) { String curName = (String)afterEnum.nextElement(); Assert.assertEquals("added Elem Name", "SomeKey", curName); Assert.assertEquals("added Elem Value", "Some Value", params.getParameterValues(curName)[0]); } } public void testAddAdditonalParameterValues() { Parameters params = new Parameters(); Enumeration preEnum = params.getParameterNames(); while (preEnum.hasMoreElements()) { Assert.fail("Should have been empty"); } params.addParameterValues("SomeKey", new String[] {"Some Value"}); params.addParameterValues("SomeKey", new String[] {"Some Other Value"}); params.addParameterValues("SomeKey", new String[] {"Some Third Value"}); Enumeration afterEnum = params.getParameterNames(); while (afterEnum.hasMoreElements()) { String curName = (String)afterEnum.nextElement(); Assert.assertEquals("added Elem Name", "SomeKey", curName); Assert.assertEquals("added Elem Value", "Some Value", params.getParameterValues(curName)[0]); Assert.assertEquals("added Elem Value", "Some Other Value", params.getParameterValues(curName)[1]); Assert.assertEquals("added Elem Value", "Some Third Value", params.getParameterValues(curName)[2]); } } public void testAddAdditonalParameterMultiValued() { Parameters params = new Parameters(); Enumeration preEnum = params.getParameterNames(); while (preEnum.hasMoreElements()) { Assert.fail("Should have been empty"); } params.addParameterValues("SomeKey", new String[] {"Some Value"}); params.addParameterValues("SomeKey", new String[] {"Some Other Value", "Some Third Value"}); Enumeration afterEnum = params.getParameterNames(); while (afterEnum.hasMoreElements()) { String curName = (String)afterEnum.nextElement(); Assert.assertEquals("added Elem Name", "SomeKey", curName); Assert.assertEquals("added Elem Value", "Some Value", params.getParameterValues(curName)[0]); Assert.assertEquals("added Elem Value", "Some Other Value", params.getParameterValues(curName)[1]); Assert.assertEquals("added Elem Value", "Some Third Value", params.getParameterValues(curName)[2]); } } }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]