1 17 package org.apache.commons.collections.primitives.decorators; 18 19 import junit.framework.Test; 20 import junit.framework.TestSuite; 21 22 import org.apache.commons.collections.primitives.CharIterator; 23 24 28 public class TestUnmodifiableCharIterator extends BaseUnmodifiableCharIteratorTest { 29 30 33 public TestUnmodifiableCharIterator(String testName) { 34 super(testName); 35 } 36 37 38 public static Test suite() { 39 return new TestSuite(TestUnmodifiableCharIterator.class); 40 } 41 42 45 protected CharIterator makeUnmodifiableCharIterator() { 46 return UnmodifiableCharIterator.wrap(makeCharIterator()); 47 } 48 49 52 public void testWrapNotNull() { 53 assertNotNull(UnmodifiableCharIterator.wrap(makeCharIterator())); 54 } 55 56 public void testWrapNull() { 57 assertNull(UnmodifiableCharIterator.wrap(null)); 58 } 59 60 public void testWrapUnmodifiableCharIterator() { 61 CharIterator iter = makeUnmodifiableCharIterator(); 62 assertSame(iter,UnmodifiableCharIterator.wrap(iter)); 63 } 64 65 } | Popular Tags |