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