Package org.apache.commons.collections.primitives.adapters

Examples of org.apache.commons.collections.primitives.adapters.ShortListList


   
    // collections testing framework: inherited
    // ------------------------------------------------------------------------

    protected List makeEmptyList() {
        return new ShortListList(makeEmptyShortList());
    }
View Full Code Here


        assertTrue("Unwrapped, empty List should not be equal to empty ShortList.",!ilist.equals(list));
        assertTrue("Unwrapped, empty ShortList should not be equal to empty List.",!list.equals(ilist));
       
        assertEquals(new ListShortList(list),ilist);
        assertEquals(ilist,new ListShortList(list));
        assertEquals(new ShortListList(ilist),list);
        assertEquals(list,new ShortListList(ilist));
       
        ilist.add((short)1);
        list.add(new Short((short)1));

        assertTrue("Unwrapped, non-empty List is not equal to non-empty ShortList.",!ilist.equals(list));
        assertTrue("Unwrapped, non-empty ShortList is not equal to non-empty List.",!list.equals(ilist));
       
        assertEquals(new ListShortList(list),ilist);
        assertEquals(ilist,new ListShortList(list));
        assertEquals(new ShortListList(ilist),list);
        assertEquals(list,new ShortListList(ilist));
               
        ilist.add((short)1); ilist.add((short)2); ilist.add((short)3); ilist.add((short)5); ilist.add((short)8);
        list.add(new Short((short)1)); list.add(new Short((short)2)); list.add(new Short((short)3)); list.add(new Short((short)5)); list.add(new Short((short)8));

        assertTrue("Unwrapped, non-empty List is not equal to non-empty ShortList.",!ilist.equals(list));
        assertTrue("Unwrapped, non-empty ShortList is not equal to non-empty List.",!list.equals(ilist));
       
        assertEquals(new ListShortList(list),ilist);
        assertEquals(ilist,new ListShortList(list));
        assertEquals(new ShortListList(ilist),list);
        assertEquals(list,new ShortListList(ilist));
       
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.collections.primitives.adapters.ShortListList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.