1 16 package org.apache.commons.collections.collection; 17 18 import java.util.ArrayList ; 19 import java.util.Arrays ; 20 import java.util.Collection ; 21 22 import junit.framework.Test; 23 import junit.framework.TestSuite; 24 25 35 public class TestSynchronizedCollection extends AbstractTestCollection { 36 37 public TestSynchronizedCollection(String testName) { 38 super(testName); 39 } 40 41 public static Test suite() { 42 return new TestSuite(TestSynchronizedCollection.class); 43 } 44 45 public static void main(String args[]) { 46 String [] testCaseName = { TestSynchronizedCollection.class.getName()}; 47 junit.textui.TestRunner.main(testCaseName); 48 } 49 50 public Collection makeCollection() { 52 return SynchronizedCollection.decorate(new ArrayList ()); 53 } 54 55 public Collection makeConfirmedCollection() { 56 ArrayList list = new ArrayList (); 57 return list; 58 } 59 60 public Collection makeConfirmedFullCollection() { 61 ArrayList list = new ArrayList (); 62 list.addAll(Arrays.asList(getFullElements())); 63 return list; 64 } 65 66 public String getCompatibilityVersion() { 67 return "3.1"; 68 } 69 70 77 } 78 | Popular Tags |