Hi all guys,
Pool 1.X was using junit 3.8.1 for unit tests because of the Java1.3
retro compatibility, this test broke the build because junit 4.X is
missing in the classpath, so I'd take advantage and migrate to junit
4, any abjection? just let me know,
Simo

http://people.apache.org/~simonetripodi/
http://www.99soft.org/



On Wed, Oct 13, 2010 at 2:46 PM,  <s...@apache.org> wrote:
> Author: sebb
> Date: Wed Oct 13 12:46:01 2010
> New Revision: 1022080
>
> URL: http://svn.apache.org/viewvc?rev=1022080&view=rev
> Log:
> Add basic tests for CursorableLinkedList
>
> Added:
>    
> commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestCursorableLinkedList.java
>    (with props)
>
> Added: 
> commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestCursorableLinkedList.java
> URL: 
> http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestCursorableLinkedList.java?rev=1022080&view=auto
> ==============================================================================
> --- 
> commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestCursorableLinkedList.java
>  (added)
> +++ 
> commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestCursorableLinkedList.java
>  Wed Oct 13 12:46:01 2010
> @@ -0,0 +1,271 @@
> +/*
> + * 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.commons.pool.impl;
> +
> +import static org.junit.Assert.*;
> +
> +import org.junit.Test;
> +
> +public class TestCursorableLinkedList {
> +
> +//   �...@test
> +//    public void testHashCode() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testAddT() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testAddIntT() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testAddAllCollectionOfQextendsT() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testAddAllIntCollectionOfQextendsT() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testAddFirst() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testAddLast() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testClear() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testContains() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testContainsAll() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testCursor() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testCursorInt() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testEqualsObject() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testGet() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testGetFirst() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testGetLast() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testIndexOf() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testIsEmpty() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testIterator() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testLastIndexOf() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testListIterator() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testListIteratorInt() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testRemoveObject() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testRemoveInt() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testRemoveAll() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testRemoveFirst() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testRemoveLast() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testRetainAll() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testSet() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testSize() {
> +//        // fail("Not yet implemented");
> +//    }
> +
> +   �...@test
> +    public void testToArray() {
> +        CursorableLinkedList<Integer> cll = new 
> CursorableLinkedList<Integer>();
> +        cll.add(Integer.valueOf(1));
> +        cll.add(Integer.valueOf(2));
> +        Object[] oa;
> +        oa = cll.toArray();
> +        assertEquals(cll.size(),oa.length);
> +        assertNotNull(oa[0]);
> +        
> assertEquals("java.lang.Integer",oa[0].getClass().getCanonicalName());
> +    }
> +
> +   �...@test
> +    public void testToArrayEArray() {
> +        CursorableLinkedList<Integer> cll = new 
> CursorableLinkedList<Integer>();
> +        cll.add(Integer.valueOf(1));
> +        cll.add(Integer.valueOf(2));
> +        Integer[] ia;
> +        ia = cll.toArray(new Integer[0]);
> +        assertEquals(cll.size(),ia.length);
> +        ia = cll.toArray(new Integer[10]);
> +        assertEquals(10,ia.length);
> +        assertNotNull(ia[0]);
> +        assertNull(ia[cll.size()]);
> +        try {
> +            cll.toArray(new String[0]);
> +            fail("Should have generated ArrayStoreException");
> +        } catch (ArrayStoreException expected){
> +            // expected
> +        }
> +        cll.toArray(new Number[0]);
> +        try {
> +            cll.toArray(null);
> +            fail("Should have generated NullPointerException");
> +        } catch (NullPointerException expected){
> +            // expected
> +        }
> +    }
> +
> +//   �...@test
> +//    public void testToString() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testSubList() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testInsertListable() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testRemoveListable() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testGetListableAt() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testRegisterCursor() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testUnregisterCursor() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testInvalidateCursors() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testBroadcastListableChanged() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testBroadcastListableRemoved() {
> +//        // fail("Not yet implemented");
> +//    }
> +//
> +//   �...@test
> +//    public void testBroadcastListableInserted() {
> +//        // fail("Not yet implemented");
> +//    }
> +
> +}
>
> Propchange: 
> commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestCursorableLinkedList.java
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestCursorableLinkedList.java
> ------------------------------------------------------------------------------
>    svn:keywords = Author Date Id Revision
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to