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.LongIterator; 23 24 28 public class TestUnmodifiableLongIterator extends BaseUnmodifiableLongIteratorTest { 29 30 33 public TestUnmodifiableLongIterator(String testName) { 34 super(testName); 35 } 36 37 38 public static Test suite() { 39 return new TestSuite(TestUnmodifiableLongIterator.class); 40 } 41 42 45 protected LongIterator makeUnmodifiableLongIterator() { 46 return UnmodifiableLongIterator.wrap(makeLongIterator()); 47 } 48 49 52 public void testWrapNotNull() { 53 assertNotNull(UnmodifiableLongIterator.wrap(makeLongIterator())); 54 } 55 56 public void testWrapNull() { 57 assertNull(UnmodifiableLongIterator.wrap(null)); 58 } 59 60 public void testWrapUnmodifiableLongIterator() { 61 LongIterator iter = makeUnmodifiableLongIterator(); 62 assertSame(iter,UnmodifiableLongIterator.wrap(iter)); 63 } 64 65 } | Popular Tags |