Java Doc for TestList.java in  » Ajax » GWT » org » apache » commons » collections » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » GWT » org.apache.commons.collections 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.commons.collections.TestObject
   org.apache.commons.collections.TestCollection
      org.apache.commons.collections.TestList

All known Subclasses:   org.apache.commons.collections.TestArrayList,
TestList
abstract public class TestList extends TestCollection (Code)
Tests base java.util.List methods and contracts.

To use, simply extend this class, and implement the TestList.makeList method.

If your List fails one of these tests by design, you may still use this base set of cases. Simply override the test case (method) your List fails.
author:
   Rodney Waldhoff
author:
   Paul Jack
version:
   $Id: TestList.java,v 1.13.2.1 2004/05/22 12:14:05 scolebourne Exp $


Inner Class :public class TestListIterator extends AbstractTestListIterator



Method Summary
protected  ListgetConfirmedList()
     Returns the confirmed field cast to a List .
protected  ListgetList()
     Returns the collection field cast to a List .
public  booleanisSetSupported()
     Whether or not we are testing an list that allows element set.
final protected  CollectionmakeCollection()
     Returns makeEmptyList() .
protected  CollectionmakeConfirmedCollection()
     Returns an empty ArrayList .
protected  CollectionmakeConfirmedFullCollection()
     Returns a full ArrayList .
abstract protected  ListmakeEmptyList()
     Return a new, empty List to be used for testing.
final protected  CollectionmakeFullCollection()
     Returns makeFullList() .
protected  ListmakeFullList()
     Return a new, full List to be used for testing.
public  booleansupportsEmptyIterator()
     Whether or not we are testing an iterator that can be empty.
public  voidtestListAddByIndex()
     Tests List.add(intObject) .
public  voidtestListEquals()
     Tests List.equals(Object) .
public  voidtestListGetByIndex()
     Tests List.get(int) .
public  voidtestListHashCode()
     Tests List.hashCode .
public  voidtestListIndexOf()
     Tests List.indexOf .
public  voidtestListIteratorAdd()
     Tests the ListIterator.add(Object) method of the list iterator.
public  voidtestListIteratorSet()
     Tests the ListIterator.set(Object) method of the list iterator.
public  voidtestListLastIndexOf()
     Tests List.lastIndexOf .
public  voidtestListListIterator()
     Tests the read-only bits of List.listIterator .
public  voidtestListListIteratorByIndex()
     Tests the read-only bits of List.listIterator(int) .
public  voidtestListListIteratorNextRemoveNext()
     Tests remove on list iterator is correct.
public  voidtestListListIteratorNextRemovePrevious()
     Tests remove on list iterator is correct.
public  voidtestListListIteratorPreviousRemoveNext()
     Tests remove on list iterator is correct.
public  voidtestListListIteratorPreviousRemovePrevious()
     Tests remove on list iterator is correct.
public  voidtestListRemoveByIndex()
     Tests List.remove(int) .
protected  voidverify()
     Verifies that the test list implementation matches the confirmed list implementation.



Method Detail
getConfirmedList
protected List getConfirmedList()(Code)
Returns the confirmed field cast to a List . the confirmed field as a List



getList
protected List getList()(Code)
Returns the collection field cast to a List . the collection field as a List



isSetSupported
public boolean isSetSupported()(Code)
Whether or not we are testing an list that allows element set. Default is true. true if Lists support element set



makeCollection
final protected Collection makeCollection()(Code)
Returns makeEmptyList() . an empty list to be used for testing



makeConfirmedCollection
protected Collection makeConfirmedCollection()(Code)
Returns an empty ArrayList .



makeConfirmedFullCollection
protected Collection makeConfirmedFullCollection()(Code)
Returns a full ArrayList .



makeEmptyList
abstract protected List makeEmptyList()(Code)
Return a new, empty List to be used for testing. an empty list for testing.



makeFullCollection
final protected Collection makeFullCollection()(Code)
Returns makeFullList() . a full list to be used for testing



makeFullList
protected List makeFullList()(Code)
Return a new, full List to be used for testing. a full list for testing



supportsEmptyIterator
public boolean supportsEmptyIterator()(Code)
Whether or not we are testing an iterator that can be empty. Default is true. true if Iterators can be empty



testListAddByIndex
public void testListAddByIndex()(Code)
Tests List.add(intObject) .



testListEquals
public void testListEquals()(Code)
Tests List.equals(Object) .



testListGetByIndex
public void testListGetByIndex()(Code)
Tests List.get(int) .



testListHashCode
public void testListHashCode()(Code)
Tests List.hashCode .



testListIndexOf
public void testListIndexOf()(Code)
Tests List.indexOf .



testListIteratorAdd
public void testListIteratorAdd()(Code)
Tests the ListIterator.add(Object) method of the list iterator.



testListIteratorSet
public void testListIteratorSet()(Code)
Tests the ListIterator.set(Object) method of the list iterator.



testListLastIndexOf
public void testListLastIndexOf()(Code)
Tests List.lastIndexOf .



testListListIterator
public void testListListIterator()(Code)
Tests the read-only bits of List.listIterator .



testListListIteratorByIndex
public void testListListIteratorByIndex()(Code)
Tests the read-only bits of List.listIterator(int) .



testListListIteratorNextRemoveNext
public void testListListIteratorNextRemoveNext()(Code)
Tests remove on list iterator is correct.



testListListIteratorNextRemovePrevious
public void testListListIteratorNextRemovePrevious()(Code)
Tests remove on list iterator is correct.



testListListIteratorPreviousRemoveNext
public void testListListIteratorPreviousRemoveNext()(Code)
Tests remove on list iterator is correct.



testListListIteratorPreviousRemovePrevious
public void testListListIteratorPreviousRemovePrevious()(Code)
Tests remove on list iterator is correct.



testListRemoveByIndex
public void testListRemoveByIndex()(Code)
Tests List.remove(int) .



verify
protected void verify()(Code)
Verifies that the test list implementation matches the confirmed list implementation.



Fields inherited from org.apache.commons.collections.TestCollection
protected Collection collection(Code)(Java Doc)
protected Collection confirmed(Code)(Java Doc)

Methods inherited from org.apache.commons.collections.TestCollection
protected boolean areEqualElementsDistinguishable()(Code)(Java Doc)
protected Object[] getFullElements()(Code)(Java Doc)
public static Object[] getFullNonNullElements()(Code)(Java Doc)
public static Object[] getFullNonNullStringElements()(Code)(Java Doc)
protected Object[] getOtherElements()(Code)(Java Doc)
public static Object[] getOtherNonNullElements()(Code)(Java Doc)
public static Object[] getOtherNonNullStringElements()(Code)(Java Doc)
protected boolean isAddSupported()(Code)(Java Doc)
protected boolean isRemoveSupported()(Code)(Java Doc)
abstract protected Collection makeCollection()(Code)(Java Doc)
abstract protected Collection makeConfirmedCollection()(Code)(Java Doc)
abstract protected Collection makeConfirmedFullCollection()(Code)(Java Doc)
protected Collection makeFullCollection()(Code)(Java Doc)
public Object makeObject()(Code)(Java Doc)
protected void resetEmpty()(Code)(Java Doc)
protected void resetFull()(Code)(Java Doc)
public void testCollectionAdd()(Code)(Java Doc)
public void testCollectionAddAll()(Code)(Java Doc)
public void testCollectionClear()(Code)(Java Doc)
public void testCollectionContains()(Code)(Java Doc)
public void testCollectionContainsAll()(Code)(Java Doc)
public void testCollectionIsEmpty()(Code)(Java Doc)
public void testCollectionIterator()(Code)(Java Doc)
public void testCollectionIteratorRemove()(Code)(Java Doc)
public void testCollectionRemove()(Code)(Java Doc)
public void testCollectionRemoveAll()(Code)(Java Doc)
public void testCollectionRetainAll()(Code)(Java Doc)
public void testCollectionSize()(Code)(Java Doc)
public void testCollectionToString()(Code)(Java Doc)
public void testUnsupportedAdd()(Code)(Java Doc)
public void testUnsupportedRemove()(Code)(Java Doc)
protected void verify()(Code)(Java Doc)

Fields inherited from org.apache.commons.collections.TestObject
final public static int COLLECTIONS_MAJOR_VERSION(Code)(Java Doc)

Methods inherited from org.apache.commons.collections.TestObject
public String getCanonicalEmptyCollectionName(Object object)(Code)(Java Doc)
public String getCanonicalFullCollectionName(Object object)(Code)(Java Doc)
public int getCompatibilityVersion()(Code)(Java Doc)
abstract public Object makeObject()(Code)(Java Doc)
public boolean supportsEmptyCollections()(Code)(Java Doc)
public boolean supportsFullCollections()(Code)(Java Doc)
public void testObjectEqualsSelf()(Code)(Java Doc)
public void testObjectHashCodeEqualsContract()(Code)(Java Doc)
public void testObjectHashCodeEqualsSelfHashCode()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.