Update licence and version

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131243 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2003-10-05 21:11:06 +00:00
parent 96c2adf196
commit 7621d6e135
13 changed files with 119 additions and 166 deletions

View File

@ -1,10 +1,10 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestCircularFifoBuffer.java,v 1.4 2003/10/02 22:14:29 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestCircularFifoBuffer.java,v 1.5 2003/10/05 21:11:06 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2003 The Apache Software Foundation. All rights
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -33,7 +33,7 @@
*
* 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.
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
@ -67,7 +67,7 @@ import junit.framework.Test;
/**
* Test cases for CircularFifoBuffer.
*
* @version $Revision: 1.4 $ $Date: 2003/10/02 22:14:29 $
* @version $Revision: 1.5 $ $Date: 2003/10/05 21:11:06 $
*
* @author Stephen Colebourne
*/

View File

@ -1,10 +1,10 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestClosureUtils.java,v 1.2 2003/08/31 17:28:43 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestClosureUtils.java,v 1.3 2003/10/05 21:11:06 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2002-2003 The Apache Software Foundation. All rights
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -71,7 +71,7 @@ import junit.textui.TestRunner;
* Tests the org.apache.commons.collections.ClosureUtils class.
*
* @since Commons Collections 3.0
* @version $Revision: 1.2 $ $Date: 2003/08/31 17:28:43 $
* @version $Revision: 1.3 $ $Date: 2003/10/05 21:11:06 $
*
* @author Stephen Colebourne
*/

View File

@ -1,13 +1,10 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestCommonsLinkedList.java,v 1.4 2003/10/05 06:41:08 psteitz Exp $
* $Revision: 1.4 $
* $Date: 2003/10/05 06:41:08 $
*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestCommonsLinkedList.java,v 1.5 2003/10/05 21:11:06 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2002 The Apache Software Foundation. All rights
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -36,7 +33,7 @@
*
* 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.
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
@ -68,7 +65,9 @@ import junit.framework.Test;
/**
* Test case for {@link CommonsLinkedList}.
*
* @author <a href="mailto:rich@rd.gen.nz">Rich Dougherty</a>
* @version $Revision: 1.5 $ $Date: 2003/10/05 21:11:06 $
*
* @author Rich Dougherty
* @author David Hay
* @author Phil Steitz
*/

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestCursorableLinkedList.java,v 1.13 2003/10/05 20:46:40 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestCursorableLinkedList.java,v 1.14 2003/10/05 21:11:06 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
@ -68,7 +68,7 @@ import junit.framework.Test;
/**
* Test class.
*
* @version $Revision: 1.13 $ $Date: 2003/10/05 20:46:40 $
* @version $Revision: 1.14 $ $Date: 2003/10/05 21:11:06 $
*
* @author Rodney Waldhoff
* @author Simon Kitching

View File

@ -1,13 +1,10 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestDoubleOrderedMap.java,v 1.8 2003/10/02 23:01:09 scolebourne Exp $
* $Revision: 1.8 $
* $Date: 2003/10/02 23:01:09 $
*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestDoubleOrderedMap.java,v 1.9 2003/10/05 21:11:06 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2002 The Apache Software Foundation. All rights
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -36,7 +33,7 @@
*
* 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.
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
@ -58,11 +55,8 @@
* <http://www.apache.org/>.
*
*/
package org.apache.commons.collections;
import java.util.Collection;
import java.util.ConcurrentModificationException;
import java.util.HashMap;
@ -75,15 +69,16 @@ import java.util.Set;
import junit.framework.Test;
/**
* Class TestDoubleOrderedMap
*
* <p>
* Test cases for DoubleOrderedMap. This class cannot
* implement TestMap.SupportsPut, because it is a special
* Map that does not support duplicate keys, duplicate
* values, or null values.
*
* @version $Revision: 1.9 $ $Date: 2003/10/05 21:11:06 $
*
* @author Marc Johnson (marcj at users dot sourceforge dot net)
*/
public class TestDoubleOrderedMap extends AbstractTestMap {

View File

@ -1,13 +1,10 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestExtendedProperties.java,v 1.9 2003/09/20 17:02:03 scolebourne Exp $
* $Revision: 1.9 $
* $Date: 2003/09/20 17:02:03 $
*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestExtendedProperties.java,v 1.10 2003/10/05 21:11:06 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2003 The Apache Software Foundation. All rights
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -36,7 +33,7 @@
*
* 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.
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
@ -69,15 +66,16 @@ import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Tests some basic functions of the ExtendedProperties
* class
* Tests some basic functions of the ExtendedProperties class.
*
* @author <a href="mailto:geirm@optonline.net">Geir Magnusson Jr.</a>
* @version $Revision: 1.10 $ $Date: 2003/10/05 21:11:06 $
*
* @author Geir Magnusson Jr.
* @author Mohan Kishore
* @author Stephen Colebourne
* @version $Id: TestExtendedProperties.java,v 1.9 2003/09/20 17:02:03 scolebourne Exp $
*/
public class TestExtendedProperties extends TestCase {
protected ExtendedProperties eprop = new ExtendedProperties();
public TestExtendedProperties(String testName) {

View File

@ -1,10 +1,10 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestFactoryUtils.java,v 1.4 2003/08/31 17:28:43 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestFactoryUtils.java,v 1.5 2003/10/05 21:11:06 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2002-2003 The Apache Software Foundation. All rights
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -70,7 +70,7 @@ import junit.textui.TestRunner;
* Tests the org.apache.commons.collections.FactoryUtils class.
*
* @since Commons Collections 3.0
* @version $Revision: 1.4 $ $Date: 2003/08/31 17:28:43 $
* @version $Revision: 1.5 $ $Date: 2003/10/05 21:11:06 $
*
* @author Stephen Colebourne
*/

View File

@ -1,13 +1,10 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestFastArrayList.java,v 1.7 2003/08/31 17:28:43 scolebourne Exp $
* $Revision: 1.7 $
* $Date: 2003/08/31 17:28:43 $
*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestFastArrayList.java,v 1.8 2003/10/05 21:11:06 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2001 The Apache Software Foundation. All rights
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -36,7 +33,7 @@
*
* 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.
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
@ -58,7 +55,6 @@
* <http://www.apache.org/>.
*
*/
package org.apache.commons.collections;
import java.util.ArrayList;
@ -67,34 +63,32 @@ import java.util.List;
import junit.framework.Test;
/**
* @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
* @version $Id: TestFastArrayList.java,v 1.7 2003/08/31 17:28:43 scolebourne Exp $
* Test FastArrayList.
*
* @version $Revision: 1.8 $ $Date: 2003/10/05 21:11:06 $
*
* @author Jason van Zyl
*/
public class TestFastArrayList extends TestArrayList
{
public TestFastArrayList(String testName)
{
public class TestFastArrayList extends TestArrayList {
public TestFastArrayList(String testName) {
super(testName);
}
public static Test suite()
{
public static Test suite() {
return BulkTest.makeSuite(TestFastArrayList.class);
}
public static void main(String args[])
{
String[] testCaseName = { TestFastArrayList.class.getName() };
public static void main(String args[]) {
String[] testCaseName = { TestFastArrayList.class.getName()};
junit.textui.TestRunner.main(testCaseName);
}
public void setUp()
{
public void setUp() {
list = (ArrayList) makeEmptyList();
}
public List makeEmptyList()
{
public List makeEmptyList() {
FastArrayList fal = new FastArrayList();
fal.setFast(false);
return (fal);

View File

@ -1,13 +1,10 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestFastArrayList1.java,v 1.5 2003/08/31 17:28:43 scolebourne Exp $
* $Revision: 1.5 $
* $Date: 2003/08/31 17:28:43 $
*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestFastArrayList1.java,v 1.6 2003/10/05 21:11:06 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2001 The Apache Software Foundation. All rights
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -36,7 +33,7 @@
*
* 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.
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
@ -58,7 +55,6 @@
* <http://www.apache.org/>.
*
*/
package org.apache.commons.collections;
import java.util.ArrayList;
@ -68,39 +64,34 @@ import junit.framework.Test;
/**
* Test FastArrayList implementation in <strong>fast</strong> mode.
*
* @version $Revision: 1.6 $ $Date: 2003/10/05 21:11:06 $
*
* @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
* @version $Id: TestFastArrayList1.java,v 1.5 2003/08/31 17:28:43 scolebourne Exp $
* @author Jason van Zyl
*/
public class TestFastArrayList1 extends TestFastArrayList
{
public TestFastArrayList1(String testName)
{
public class TestFastArrayList1 extends TestFastArrayList {
public TestFastArrayList1(String testName) {
super(testName);
}
public static Test suite()
{
public static Test suite() {
return BulkTest.makeSuite(TestFastArrayList1.class);
}
public static void main(String args[])
{
String[] testCaseName = { TestFastArrayList1.class.getName() };
public static void main(String args[]) {
String[] testCaseName = { TestFastArrayList1.class.getName()};
junit.textui.TestRunner.main(testCaseName);
}
public void setUp()
{
public void setUp() {
list = (ArrayList) makeEmptyList();
}
public List makeEmptyList()
{
public List makeEmptyList() {
FastArrayList fal = new FastArrayList();
fal.setFast(true);
return (fal);
}
}

View File

@ -1,13 +1,10 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestFastHashMap.java,v 1.10 2003/10/02 23:01:10 scolebourne Exp $
* $Revision: 1.10 $
* $Date: 2003/10/02 23:01:10 $
*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestFastHashMap.java,v 1.11 2003/10/05 21:11:06 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2001 The Apache Software Foundation. All rights
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -36,7 +33,7 @@
*
* 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.
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
@ -58,7 +55,6 @@
* <http://www.apache.org/>.
*
*/
package org.apache.commons.collections;
import java.util.Map;
@ -66,24 +62,24 @@ import java.util.Map;
import junit.framework.Test;
/**
* @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
* @version $Id: TestFastHashMap.java,v 1.10 2003/10/02 23:01:10 scolebourne Exp $
* Tests FastHashMap.
*
* @version $Revision: 1.11 $ $Date: 2003/10/05 21:11:06 $
*
* @author Jason van Zyl
*/
public class TestFastHashMap extends AbstractTestMap
{
public TestFastHashMap(String testName)
{
public class TestFastHashMap extends AbstractTestMap {
public TestFastHashMap(String testName) {
super(testName);
}
public static Test suite()
{
public static Test suite() {
return BulkTest.makeSuite(TestFastHashMap.class);
}
public static void main(String args[])
{
String[] testCaseName = { TestFastHashMap.class.getName() };
public static void main(String args[]) {
String[] testCaseName = { TestFastHashMap.class.getName()};
junit.textui.TestRunner.main(testCaseName);
}

View File

@ -1,13 +1,10 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestFastHashMap1.java,v 1.6 2003/08/31 17:28:43 scolebourne Exp $
* $Revision: 1.6 $
* $Date: 2003/08/31 17:28:43 $
*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestFastHashMap1.java,v 1.7 2003/10/05 21:11:06 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2001 The Apache Software Foundation. All rights
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -36,7 +33,7 @@
*
* 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.
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
@ -58,7 +55,6 @@
* <http://www.apache.org/>.
*
*/
package org.apache.commons.collections;
import java.util.HashMap;
@ -68,25 +64,23 @@ import junit.framework.Test;
/**
* Test FastHashMap in <strong>fast</strong> mode.
*
* @version $Revision: 1.7 $ $Date: 2003/10/05 21:11:06 $
*
* @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
* @version $Id: TestFastHashMap1.java,v 1.6 2003/08/31 17:28:43 scolebourne Exp $
* @author Jason van Zyl
*/
public class TestFastHashMap1 extends TestFastHashMap
{
public TestFastHashMap1(String testName)
{
public class TestFastHashMap1 extends TestFastHashMap {
public TestFastHashMap1(String testName) {
super(testName);
}
public static Test suite()
{
public static Test suite() {
return BulkTest.makeSuite(TestFastHashMap1.class);
}
public static void main(String args[])
{
String[] testCaseName = { TestFastHashMap1.class.getName() };
public static void main(String args[]) {
String[] testCaseName = { TestFastHashMap1.class.getName()};
junit.textui.TestRunner.main(testCaseName);
}
@ -96,8 +90,7 @@ public class TestFastHashMap1 extends TestFastHashMap
return (fhm);
}
public void setUp()
{
public void setUp() {
map = (HashMap) makeEmptyMap();
}

View File

@ -1,13 +1,10 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestFastTreeMap.java,v 1.10 2003/08/31 17:28:43 scolebourne Exp $
* $Revision: 1.10 $
* $Date: 2003/08/31 17:28:43 $
*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestFastTreeMap.java,v 1.11 2003/10/05 21:11:06 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2001 The Apache Software Foundation. All rights
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -36,7 +33,7 @@
*
* 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.
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
@ -58,7 +55,6 @@
* <http://www.apache.org/>.
*
*/
package org.apache.commons.collections;
import java.util.Map;
@ -67,24 +63,24 @@ import java.util.TreeMap;
import junit.framework.Test;
/**
* @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
* @version $Id: TestFastTreeMap.java,v 1.10 2003/08/31 17:28:43 scolebourne Exp $
* Tests FastTreeMap.
*
* @version $Revision: 1.11 $ $Date: 2003/10/05 21:11:06 $
*
* @author Jason van Zyl
*/
public class TestFastTreeMap extends TestTreeMap
{
public TestFastTreeMap(String testName)
{
public class TestFastTreeMap extends TestTreeMap {
public TestFastTreeMap(String testName) {
super(testName);
}
public static Test suite()
{
public static Test suite() {
return BulkTest.makeSuite(TestFastTreeMap.class);
}
public static void main(String args[])
{
String[] testCaseName = { TestFastTreeMap.class.getName() };
public static void main(String args[]) {
String[] testCaseName = { TestFastTreeMap.class.getName()};
junit.textui.TestRunner.main(testCaseName);
}
@ -97,25 +93,23 @@ public class TestFastTreeMap extends TestTreeMap
public Map makeConfirmedEmptyMap() {
return new TreeMap();
}
/**
* The comparator for the fast tree map does not support null keys.
**/
public boolean useNullKey() {
return false;
return false;
}
/**
* There is a bug in JDK1.2.2 TreeMap; the keySet will incorrectly
* return false when a null value is removed
*/
public boolean useNullValue() {
return false;
return false;
}
public void setUp()
{
public void setUp() {
map = (TreeMap) makeEmptyMap();
}

View File

@ -1,13 +1,10 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestFastTreeMap1.java,v 1.6 2003/08/31 17:28:43 scolebourne Exp $
* $Revision: 1.6 $
* $Date: 2003/08/31 17:28:43 $
*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestFastTreeMap1.java,v 1.7 2003/10/05 21:11:06 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2001 The Apache Software Foundation. All rights
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -36,7 +33,7 @@
*
* 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.
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
@ -58,7 +55,6 @@
* <http://www.apache.org/>.
*
*/
package org.apache.commons.collections;
import java.util.Map;
@ -68,25 +64,23 @@ import junit.framework.Test;
/**
* Test FastTreeMap in <strong>fast</strong> mode.
*
* @version $Revision: 1.7 $ $Date: 2003/10/05 21:11:06 $
*
* @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
* @version $Id: TestFastTreeMap1.java,v 1.6 2003/08/31 17:28:43 scolebourne Exp $
*/
public class TestFastTreeMap1 extends TestFastTreeMap
{
public TestFastTreeMap1(String testName)
{
public class TestFastTreeMap1 extends TestFastTreeMap {
public TestFastTreeMap1(String testName) {
super(testName);
}
public static Test suite()
{
public static Test suite() {
return BulkTest.makeSuite(TestFastTreeMap1.class);
}
public static void main(String args[])
{
String[] testCaseName = { TestFastTreeMap1.class.getName() };
public static void main(String args[]) {
String[] testCaseName = { TestFastTreeMap1.class.getName()};
junit.textui.TestRunner.main(testCaseName);
}
@ -96,8 +90,7 @@ public class TestFastTreeMap1 extends TestFastTreeMap
return (ftm);
}
public void setUp()
{
public void setUp() {
map = (TreeMap) makeEmptyMap();
}