You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2010/10/13 14:46:02 UTC

svn commit: r1022080 - /commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestCursorableLinkedList.java

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



RE: svn commit: r1022080 - /commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestCursorableLinkedList.java

Posted by Gary Gregory <GG...@seagullsoftware.com>.
Doh, yes, [pool].

> -----Original Message-----
> From: Simone Tripodi [mailto:simone.tripodi@gmail.com]
> Sent: Wednesday, October 13, 2010 09:17
> To: Commons Developers List
> Subject: Re: svn commit: r1022080 -
> /commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestCursorabl
> eLinkedList.java
> 
> done! but... did you mean [pool]? :P
> Simo
> 
> http://people.apache.org/~simonetripodi/
> http://www.99soft.org/
> 
> 
> 
> On Wed, Oct 13, 2010 at 6:06 PM, Gary Gregory
> <GG...@seagullsoftware.com> wrote:
> > +1 to JUnit 4! Welcome to the 21st century [IO]!
> >
> > Gary Gregory
> > Senior Software Engineer
> > Rocket Software
> > 3340 Peachtree Road, Suite 820 • Atlanta, GA 30326 • USA
> > Tel: +1.404.760.1560
> > Email: ggregory@seagullsoftware.com
> > Web: seagull.rocketsoftware.com
> >
> >
> >
> >> -----Original Message-----
> >> From: Simone Tripodi [mailto:simone.tripodi@gmail.com]
> >> Sent: Wednesday, October 13, 2010 08:33
> >> To: Commons Developers List
> >> Subject: Re: svn commit: r1022080 -
> >>
> /commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestCursorabl
> >> eLinkedList.java
> >>
> >> Thanks for the feedback, I'm already in the process to convert them,
> >> previewing that junit4.x would have been accepted :P
> >> best,
> >> Simo
> >>
> >> http://people.apache.org/~simonetripodi/
> >> http://www.99soft.org/
> >>
> >>
> >>
> >> On Wed, Oct 13, 2010 at 5:17 PM, sebb <se...@gmail.com> wrote:
> >> > On 13 October 2010 15:36, Simone Tripodi <si...@gmail.com>
> wrote:
> >> >> 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,
> >> >
> >> > Oops! Done it again. I did test in Eclipse, but should have tested
> >> > using Maven as well.
> >> >
> >> > I agree - no need to keep the dependency on JUnit 3.8.1.
> >> >
> >> > JUnit 4.x still supports JUnit 3 tests (but not in the same class)
> >> >
> >> > It's not trivial to migrate existing tests to JUnit 4 (some will need
> >> > splitting), but I don't have any objections if you want to convert
> >> > them.
> >> >
> >> >> Simo
> >> >>
> >> >> http://people.apache.org/~simonetripodi/
> >> >> http://www.99soft.org/
> >> >>
> >> >>
> >> >>
> >> >> On Wed, Oct 13, 2010 at 2:46 PM,  <se...@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:
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> >> > For additional commands, e-mail: dev-help@commons.apache.org
> >> >
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> >> For additional commands, e-mail: dev-help@commons.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org


Re: svn commit: r1022080 - /commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestCursorableLinkedList.java

Posted by Simone Tripodi <si...@gmail.com>.
done! but... did you mean [pool]? :P
Simo

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



On Wed, Oct 13, 2010 at 6:06 PM, Gary Gregory
<GG...@seagullsoftware.com> wrote:
> +1 to JUnit 4! Welcome to the 21st century [IO]!
>
> Gary Gregory
> Senior Software Engineer
> Rocket Software
> 3340 Peachtree Road, Suite 820 • Atlanta, GA 30326 • USA
> Tel: +1.404.760.1560
> Email: ggregory@seagullsoftware.com
> Web: seagull.rocketsoftware.com
>
>
>
>> -----Original Message-----
>> From: Simone Tripodi [mailto:simone.tripodi@gmail.com]
>> Sent: Wednesday, October 13, 2010 08:33
>> To: Commons Developers List
>> Subject: Re: svn commit: r1022080 -
>> /commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestCursorabl
>> eLinkedList.java
>>
>> Thanks for the feedback, I'm already in the process to convert them,
>> previewing that junit4.x would have been accepted :P
>> best,
>> Simo
>>
>> http://people.apache.org/~simonetripodi/
>> http://www.99soft.org/
>>
>>
>>
>> On Wed, Oct 13, 2010 at 5:17 PM, sebb <se...@gmail.com> wrote:
>> > On 13 October 2010 15:36, Simone Tripodi <si...@gmail.com> wrote:
>> >> 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,
>> >
>> > Oops! Done it again. I did test in Eclipse, but should have tested
>> > using Maven as well.
>> >
>> > I agree - no need to keep the dependency on JUnit 3.8.1.
>> >
>> > JUnit 4.x still supports JUnit 3 tests (but not in the same class)
>> >
>> > It's not trivial to migrate existing tests to JUnit 4 (some will need
>> > splitting), but I don't have any objections if you want to convert
>> > them.
>> >
>> >> Simo
>> >>
>> >> http://people.apache.org/~simonetripodi/
>> >> http://www.99soft.org/
>> >>
>> >>
>> >>
>> >> On Wed, Oct 13, 2010 at 2:46 PM,  <se...@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:
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> > For additional commands, e-mail: dev-help@commons.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>
>

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


RE: svn commit: r1022080 - /commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestCursorableLinkedList.java

Posted by Gary Gregory <GG...@seagullsoftware.com>.
+1 to JUnit 4! Welcome to the 21st century [IO]!

Gary Gregory
Senior Software Engineer
Rocket Software
3340 Peachtree Road, Suite 820 • Atlanta, GA 30326 • USA
Tel: +1.404.760.1560
Email: ggregory@seagullsoftware.com
Web: seagull.rocketsoftware.com  



> -----Original Message-----
> From: Simone Tripodi [mailto:simone.tripodi@gmail.com]
> Sent: Wednesday, October 13, 2010 08:33
> To: Commons Developers List
> Subject: Re: svn commit: r1022080 -
> /commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestCursorabl
> eLinkedList.java
> 
> Thanks for the feedback, I'm already in the process to convert them,
> previewing that junit4.x would have been accepted :P
> best,
> Simo
> 
> http://people.apache.org/~simonetripodi/
> http://www.99soft.org/
> 
> 
> 
> On Wed, Oct 13, 2010 at 5:17 PM, sebb <se...@gmail.com> wrote:
> > On 13 October 2010 15:36, Simone Tripodi <si...@gmail.com> wrote:
> >> 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,
> >
> > Oops! Done it again. I did test in Eclipse, but should have tested
> > using Maven as well.
> >
> > I agree - no need to keep the dependency on JUnit 3.8.1.
> >
> > JUnit 4.x still supports JUnit 3 tests (but not in the same class)
> >
> > It's not trivial to migrate existing tests to JUnit 4 (some will need
> > splitting), but I don't have any objections if you want to convert
> > them.
> >
> >> Simo
> >>
> >> http://people.apache.org/~simonetripodi/
> >> http://www.99soft.org/
> >>
> >>
> >>
> >> On Wed, Oct 13, 2010 at 2:46 PM,  <se...@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:
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> > For additional commands, e-mail: dev-help@commons.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org


Re: svn commit: r1022080 - /commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestCursorableLinkedList.java

Posted by Simone Tripodi <si...@gmail.com>.
Thanks for the feedback, I'm already in the process to convert them,
previewing that junit4.x would have been accepted :P
best,
Simo

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



On Wed, Oct 13, 2010 at 5:17 PM, sebb <se...@gmail.com> wrote:
> On 13 October 2010 15:36, Simone Tripodi <si...@gmail.com> wrote:
>> 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,
>
> Oops! Done it again. I did test in Eclipse, but should have tested
> using Maven as well.
>
> I agree - no need to keep the dependency on JUnit 3.8.1.
>
> JUnit 4.x still supports JUnit 3 tests (but not in the same class)
>
> It's not trivial to migrate existing tests to JUnit 4 (some will need
> splitting), but I don't have any objections if you want to convert
> them.
>
>> Simo
>>
>> http://people.apache.org/~simonetripodi/
>> http://www.99soft.org/
>>
>>
>>
>> On Wed, Oct 13, 2010 at 2:46 PM,  <se...@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:
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

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


Re: svn commit: r1022080 - /commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestCursorableLinkedList.java

Posted by sebb <se...@gmail.com>.
On 13 October 2010 15:36, Simone Tripodi <si...@gmail.com> wrote:
> 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,

Oops! Done it again. I did test in Eclipse, but should have tested
using Maven as well.

I agree - no need to keep the dependency on JUnit 3.8.1.

JUnit 4.x still supports JUnit 3 tests (but not in the same class)

It's not trivial to migrate existing tests to JUnit 4 (some will need
splitting), but I don't have any objections if you want to convert
them.

> Simo
>
> http://people.apache.org/~simonetripodi/
> http://www.99soft.org/
>
>
>
> On Wed, Oct 13, 2010 at 2:46 PM,  <se...@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:

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


Re: svn commit: r1022080 - /commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestCursorableLinkedList.java

Posted by Simone Tripodi <si...@gmail.com>.
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,  <se...@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-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org