[cvs] / jsr166 / src / test / tck / ArrayListTest.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/ArrayListTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1, Mon Oct 17 17:52:30 2016 UTC revision 1.2, Mon Nov 14 22:47:18 2016 UTC
# Line 7  Line 7 
7    
8  import java.util.ArrayList;  import java.util.ArrayList;
9  import java.util.Collection;  import java.util.Collection;
10    import java.util.List;
11    
12  import junit.framework.Test;  import junit.framework.Test;
13  import junit.framework.TestSuite;  import junit.framework.TestSuite;
# Line 19  Line 20 
20      public static Test suite() {      public static Test suite() {
21          class Implementation implements CollectionImplementation {          class Implementation implements CollectionImplementation {
22              public Class<?> klazz() { return ArrayList.class; }              public Class<?> klazz() { return ArrayList.class; }
23              public Collection emptyCollection() { return new ArrayList(); }              public List emptyCollection() { return new ArrayList(); }
24              public Object makeElement(int i) { return i; }              public Object makeElement(int i) { return i; }
25              public boolean isConcurrent() { return false; }              public boolean isConcurrent() { return false; }
26              public boolean permitsNulls() { return true; }              public boolean permitsNulls() { return true; }
27          }          }
28          return newTestSuite(// ArrayListTest.class,          class SubListImplementation extends Implementation {
29                              CollectionTest.testSuite(new Implementation()));              public List emptyCollection() {
30                    return super.emptyCollection().subList(0, 0);
31                }
32            }
33            return newTestSuite(
34                    // ArrayListTest.class,
35                    CollectionTest.testSuite(new Implementation()),
36                    CollectionTest.testSuite(new SubListImplementation()));
37      }      }
38    
39  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8