have all setUp and tearDown methods throw Exception, so they can be extended more easily (see http://issues.apache.org/bugzilla/show_bug.cgi?id=14151)
update/fix copyright in a few of these touched files git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130859 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2c0e5353a8
commit
0cb8046cd3
|
@ -1,13 +1,13 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestMap.java,v 1.20 2002/10/13 13:55:35 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestMap.java,v 1.21 2002/11/01 19:07:53 rwaldhoff Exp $
|
||||||
* $Revision: 1.20 $
|
* $Revision: 1.21 $
|
||||||
* $Date: 2002/10/13 13:55:35 $
|
* $Date: 2002/11/01 19:07:53 $
|
||||||
*
|
*
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
*
|
*
|
||||||
* Copyright (c) 1999-2001 The Apache Software Foundation. All rights
|
* Copyright (c) 2001-2002 The Apache Software Foundation. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -152,7 +152,7 @@ import java.util.Set;
|
||||||
* @author Michael Smith
|
* @author Michael Smith
|
||||||
* @author Rodney Waldhoff
|
* @author Rodney Waldhoff
|
||||||
* @author Paul Jack
|
* @author Paul Jack
|
||||||
* @version $Id: TestMap.java,v 1.20 2002/10/13 13:55:35 scolebourne Exp $
|
* @version $Revision: 1.21 $ $Date: 2002/11/01 19:07:53 $
|
||||||
*/
|
*/
|
||||||
public abstract class TestMap extends TestObject {
|
public abstract class TestMap extends TestObject {
|
||||||
|
|
||||||
|
@ -1119,7 +1119,7 @@ public abstract class TestMap extends TestObject {
|
||||||
/**
|
/**
|
||||||
* Erases any leftover instance variables by setting them to null.
|
* Erases any leftover instance variables by setting them to null.
|
||||||
*/
|
*/
|
||||||
protected void tearDown() {
|
protected void tearDown() throws Exception {
|
||||||
map = null;
|
map = null;
|
||||||
keySet = null;
|
keySet = null;
|
||||||
entrySet = null;
|
entrySet = null;
|
||||||
|
|
|
@ -3,7 +3,7 @@ package org.apache.commons.collections;
|
||||||
/* ====================================================================
|
/* ====================================================================
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
*
|
*
|
||||||
* Copyright (c) 2001 The Apache Software Foundation. All rights
|
* Copyright (c) 2001-2002 The Apache Software Foundation. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -206,7 +206,7 @@ public class TestSequencedHashMap extends TestMap {
|
||||||
map2.getLastKey(),getSampleKeys()[getSampleKeys().length - 1]);
|
map2.getLastKey(),getSampleKeys()[getSampleKeys().length - 1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void tearDown() {
|
protected void tearDown() throws Exception {
|
||||||
labRat = null;
|
labRat = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/iterators/TestFilterIterator.java,v 1.2 2002/10/12 22:36:23 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/iterators/TestFilterIterator.java,v 1.3 2002/11/01 19:07:54 rwaldhoff Exp $
|
||||||
* $Revision: 1.2 $
|
* $Revision: 1.3 $
|
||||||
* $Date: 2002/10/12 22:36:23 $
|
* $Date: 2002/11/01 19:07:54 $
|
||||||
*
|
*
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
*
|
*
|
||||||
* Copyright (c) 1999-2001 The Apache Software Foundation. All rights
|
* Copyright (c) 2001-2002 The Apache Software Foundation. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -93,7 +93,7 @@ public class TestFilterIterator extends TestIterator {
|
||||||
/**
|
/**
|
||||||
* Tear down instance variables required by this test case.
|
* Tear down instance variables required by this test case.
|
||||||
*/
|
*/
|
||||||
public void tearDown() {
|
public void tearDown() throws Exception {
|
||||||
iterator = null;
|
iterator = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/iterators/TestFilterListIterator.java,v 1.2 2002/10/12 22:36:23 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/iterators/TestFilterListIterator.java,v 1.3 2002/11/01 19:07:54 rwaldhoff Exp $
|
||||||
* $Revision: 1.2 $
|
* $Revision: 1.3 $
|
||||||
* $Date: 2002/10/12 22:36:23 $
|
* $Date: 2002/11/01 19:07:54 $
|
||||||
*
|
*
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
*
|
*
|
||||||
* Copyright (c) 1999-2002 The Apache Software Foundation. All rights
|
* Copyright (c) 2001-2002 The Apache Software Foundation. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -70,7 +70,7 @@ import java.util.Random;
|
||||||
import org.apache.commons.collections.Predicate;
|
import org.apache.commons.collections.Predicate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @version $Revision: 1.2 $ $Date: 2002/10/12 22:36:23 $
|
* @version $Revision: 1.3 $ $Date: 2002/11/01 19:07:54 $
|
||||||
* @author Rodney Waldhoff
|
* @author Rodney Waldhoff
|
||||||
*/
|
*/
|
||||||
public class TestFilterListIterator extends TestCase {
|
public class TestFilterListIterator extends TestCase {
|
||||||
|
@ -155,7 +155,7 @@ public class TestFilterListIterator extends TestCase {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void tearDown() {
|
public void tearDown() throws Exception {
|
||||||
list = null;
|
list = null;
|
||||||
odds = null;
|
odds = null;
|
||||||
evens = null;
|
evens = null;
|
||||||
|
|
Loading…
Reference in New Issue