You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2013/04/30 16:27:37 UTC

svn commit: r1477661 [2/3] - in /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4: ./ bag/ bidimap/ collection/ comparators/ functors/ iterators/ keyvalue/ list/ map/ queue/ set/ trie/

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/FilterListIteratorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/FilterListIteratorTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/FilterListIteratorTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/FilterListIteratorTest.java Tue Apr 30 14:27:35 2013
@@ -72,37 +72,37 @@ public class FilterListIteratorTest exte
         }
 
         truePred = new Predicate<Integer>() {
-            public boolean evaluate(final Integer x) { 
+            public boolean evaluate(final Integer x) {
                 return true;
             }
         };
 
         falsePred = new Predicate<Integer>() {
-            public boolean evaluate(final Integer x) { 
+            public boolean evaluate(final Integer x) {
                 return true;
             }
         };
 
         evenPred = new Predicate<Integer>() {
-            public boolean evaluate(final Integer x) { 
+            public boolean evaluate(final Integer x) {
                 return x % 2 == 0;
             }
         };
 
         oddPred = new Predicate<Integer>() {
-            public boolean evaluate(final Integer x) { 
+            public boolean evaluate(final Integer x) {
                 return x % 2 != 0; //works for all numbers, not just >= 0 as is the case for "x % 2 == 1"
             }
         };
 
         threePred = new Predicate<Integer>() {
-            public boolean evaluate(final Integer x) { 
+            public boolean evaluate(final Integer x) {
                 return x % 3 == 0;
             }
         };
 
         fourPred = new Predicate<Integer>() {
-            public boolean evaluate(final Integer x) { 
+            public boolean evaluate(final Integer x) {
                 return x % 4 == 0;
             }
         };
@@ -133,7 +133,7 @@ public class FilterListIteratorTest exte
     public void testManual() {
         // do this one "by hand" as a sanity check
         final FilterListIterator<Integer> filtered = new FilterListIterator<Integer>(list.listIterator(), threePred);
-        
+
         assertEquals(Integer.valueOf(0), filtered.next());
         assertEquals(Integer.valueOf(3), filtered.next());
         assertEquals(Integer.valueOf(6), filtered.next());
@@ -149,7 +149,7 @@ public class FilterListIteratorTest exte
         assertEquals(Integer.valueOf(6), filtered.previous());
         assertEquals(Integer.valueOf(3), filtered.previous());
         assertEquals(Integer.valueOf(0), filtered.previous());
-    
+
         assertTrue(!filtered.hasPrevious());
 
         assertEquals(Integer.valueOf(0), filtered.next());
@@ -193,7 +193,7 @@ public class FilterListIteratorTest exte
         final FilterListIterator<Integer> filtered = new FilterListIterator<Integer>(list.listIterator(), truePred);
         walkLists(list, filtered);
     }
-    
+
     public void testFalsePredicate() {
         final FilterListIterator<Integer> filtered = new FilterListIterator<Integer>(list.listIterator(), falsePred);
         walkLists(new ArrayList<Integer>(), filtered);
@@ -203,7 +203,7 @@ public class FilterListIteratorTest exte
         final FilterListIterator<Integer> filtered = new FilterListIterator<Integer>(list.listIterator(), evenPred);
         walkLists(evens, filtered);
     }
-    
+
     public void testOdds() {
         final FilterListIterator<Integer> filtered = new FilterListIterator<Integer>(list.listIterator(), oddPred);
         walkLists(odds, filtered);
@@ -235,7 +235,7 @@ public class FilterListIteratorTest exte
         walkLists(sixes, filtered);
     }
 
-    public void testNestedSixes3() {        
+    public void testNestedSixes3() {
         final FilterListIterator<Integer> filtered = new FilterListIterator<Integer>(
                                         new FilterListIterator<Integer>(list.listIterator(), threePred),
                                         evenPred
@@ -248,7 +248,7 @@ public class FilterListIteratorTest exte
             final FilterListIterator<Integer> filtered = new FilterListIterator<Integer>(list.listIterator(), threePred);
             nextNextPrevious(threes.listIterator(), filtered);
         }
-    
+
         {
             final FilterListIterator<Integer> filtered = new FilterListIterator<Integer>(list.listIterator(), truePred);
             nextNextPrevious(list.listIterator(), filtered);

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/IteratorChainTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/IteratorChainTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/IteratorChainTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/IteratorChainTest.java Tue Apr 30 14:27:35 2013
@@ -54,7 +54,7 @@ public class IteratorChainTest extends A
         list2.add("Four");
         list3 = new ArrayList<String>();
         list3.add("Five");
-        list3.add("Six");        
+        list3.add("Six");
     }
 
     @Override
@@ -86,7 +86,7 @@ public class IteratorChainTest extends A
         try {
             iter.next();
         } catch (final Exception e) {
-            assertTrue("NoSuchElementException must be thrown", 
+            assertTrue("NoSuchElementException must be thrown",
                        e.getClass().equals(new NoSuchElementException().getClass()));
         }
     }
@@ -118,7 +118,7 @@ public class IteratorChainTest extends A
         assertEquals(0, list1.size());
         assertEquals(1, list2.size());
     }
-    
+
     @Override
     public void testRemove() {
         final Iterator<String> iter = makeObject();
@@ -162,7 +162,7 @@ public class IteratorChainTest extends A
         assertEquals("C",chain.next());
         assertTrue("should not have next",!chain.hasNext());
     }
-    
+
     public void testEmptyChain() {
         final IteratorChain<Object> chain = new IteratorChain<Object>();
         assertEquals(false, chain.hasNext());
@@ -175,5 +175,5 @@ public class IteratorChainTest extends A
             fail();
         } catch (final IllegalStateException ex) {}
     }
-        
+
 }

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/IteratorIterableTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/IteratorIterableTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/IteratorIterableTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/IteratorIterableTest.java Tue Apr 30 14:27:35 2013
@@ -24,7 +24,7 @@ import org.apache.commons.collections4.i
 
 /**
  * Tests for IteratorIterable.
- * 
+ *
  * @version $Id$
  */
 public class IteratorIterableTest extends BulkTest {
@@ -49,10 +49,10 @@ public class IteratorIterableTest extend
     public void testIterator() {
         final Iterator<Integer> iter = createIterator();
         final Iterable<Number> iterable = new IteratorIterable<Number>(iter);
-        
+
         // first use
         verifyIteration(iterable);
-        
+
         // second use
         for (@SuppressWarnings("unused") final Number actual : iterable) {
             fail("should not be able to iterate twice");
@@ -63,10 +63,10 @@ public class IteratorIterableTest extend
         final Iterator<Integer> iter = createIterator();
 
         final Iterable<Number> iterable = new IteratorIterable<Number>(iter, true);
-        
+
         // first use
         verifyIteration(iterable);
-        
+
         // second use
         verifyIteration(iterable);
     }

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/LazyIteratorChainTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/LazyIteratorChainTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/LazyIteratorChainTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/LazyIteratorChainTest.java Tue Apr 30 14:27:35 2013
@@ -54,7 +54,7 @@ public class LazyIteratorChainTest exten
         list2.add("Four");
         list3 = new ArrayList<String>();
         list3.add("Five");
-        list3.add("Six");        
+        list3.add("Six");
     }
 
     @Override
@@ -100,7 +100,7 @@ public class LazyIteratorChainTest exten
         try {
             iter.next();
         } catch (final Exception e) {
-            assertTrue("NoSuchElementException must be thrown", 
+            assertTrue("NoSuchElementException must be thrown",
                        e.getClass().equals(new NoSuchElementException().getClass()));
         }
     }
@@ -132,7 +132,7 @@ public class LazyIteratorChainTest exten
         assertEquals(0, list1.size());
         assertEquals(1, list2.size());
     }
-    
+
     @Override
     public void testRemove() {
         final Iterator<String> iter = makeObject();
@@ -185,7 +185,7 @@ public class LazyIteratorChainTest exten
         assertEquals("C",chain.next());
         assertTrue("should not have next",!chain.hasNext());
     }
-    
+
     public void testEmptyChain() {
         final LazyIteratorChain<String> chain = makeEmptyIterator();
         assertEquals(false, chain.hasNext());

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/LoopingIteratorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/LoopingIteratorTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/LoopingIteratorTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/LoopingIteratorTest.java Tue Apr 30 14:27:35 2013
@@ -46,7 +46,7 @@ public class LoopingIteratorTest extends
         } catch (final NullPointerException ex) {
         }
     }
-    
+
     /**
      * Tests whether an empty looping iterator works as designed.
      * @throws Exception  If something unexpected occurs.
@@ -176,7 +176,7 @@ public class LoopingIteratorTest extends
         assertEquals("b", loop.next());
         assertEquals("c", loop.next());
     }
-    
+
     /**
      * Tests the size() method on a LoopingIterator wrapped ArrayList.
      * @throws Exception  If something unexpected occurs.

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/LoopingListIteratorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/LoopingListIteratorTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/LoopingListIteratorTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/LoopingListIteratorTest.java Tue Apr 30 14:27:35 2013
@@ -35,7 +35,7 @@ public class LoopingListIteratorTest ext
     public LoopingListIteratorTest(final String testName) {
         super(testName);
     }
-    
+
     /**
      * Tests constructor exception.
      */
@@ -55,7 +55,7 @@ public class LoopingListIteratorTest ext
         final LoopingListIterator<Object> loop = new LoopingListIterator<Object>(list);
         assertFalse(loop.hasNext());
         assertFalse(loop.hasPrevious());
-        
+
         try {
             loop.next();
             fail();
@@ -133,7 +133,7 @@ public class LoopingListIteratorTest ext
     public void testJoggingNotOverBoundary() {
         final List<String> list = Arrays.asList(new String[] { "a", "b" });
         final LoopingListIterator<String> loop = new LoopingListIterator<String>(list); // <a> b
-    
+
         // Try jogging back and forth between the elements, but not
         // over the begin/end boundary.
         loop.reset();
@@ -153,7 +153,7 @@ public class LoopingListIteratorTest ext
     public void testJoggingOverBoundary() {
         final List<String> list = Arrays.asList(new String[] { "a", "b" });
         final LoopingListIterator<String> loop = new LoopingListIterator<String>(list); // <a> b
-    
+
         // Try jogging back and forth between the elements, but not
         // over the begin/end boundary.
         assertEquals("b", loop.previous()); // a <b>
@@ -270,7 +270,7 @@ public class LoopingListIteratorTest ext
         assertEquals("e", loop.previous()); // a b c <e> f
         assertEquals("c", loop.previous()); // a b <c> e f
         assertEquals("c", loop.next());     // a b c <e> f
-        
+
         loop.add("d");                      // a b c d <e> f
         loop.reset();                       // <a> b c d e f
         assertEquals("a", loop.next());     // a <b> c d e f
@@ -282,7 +282,7 @@ public class LoopingListIteratorTest ext
         assertEquals("a", loop.next());     // a <b> c d e f
 
         list = new ArrayList<String>(Arrays.asList(new String[] { "b", "e", "f" }));
-        loop = new LoopingListIterator<String>(list); // <b> e f        
+        loop = new LoopingListIterator<String>(list); // <b> e f
 
         loop.add("a");                      // a <b> e f
         assertEquals("a", loop.previous()); // a b e <f>
@@ -350,7 +350,7 @@ public class LoopingListIteratorTest ext
         loop.reset();                       // <q> r c
         assertEquals("q", loop.next());     // q <r> c
         loop.set("a");                      // a <r> c
-        
+
         assertEquals("r", loop.next());     // a r <c>
         loop.set("b");                      // a b <c>
 
@@ -359,5 +359,5 @@ public class LoopingListIteratorTest ext
         assertEquals("b", loop.next());     // a b <c>
         assertEquals("c", loop.next());     // <a> b c
     }
-    
+
 }

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/NodeListIteratorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/NodeListIteratorTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/NodeListIteratorTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/NodeListIteratorTest.java Tue Apr 30 14:27:35 2013
@@ -32,36 +32,36 @@ import static org.easymock.EasyMock.repl
  */
 public class NodeListIteratorTest extends AbstractIteratorTest<Node> {
 
-    // Node array to be filled with mocked Node instances 
+    // Node array to be filled with mocked Node instances
     private Node[] nodes;
-    
+
     // NodeListIterator supports two constructors. This flag allows to
     // control, which constructor to use in makeObject() and makeEmtpyIterator
     private boolean createIteratorWithStandardConstr = true;
-    
+
     /**
-     * Constructor 
-     * @param testName 
+     * Constructor
+     * @param testName
      */
     public NodeListIteratorTest(final String testName) {
         super(testName);
     }
-    
+
     @Override
     protected void setUp() throws Exception {
-        super.setUp(); 
+        super.setUp();
 
         // Default: use standard constr.
         createIteratorWithStandardConstr = true;
-        
-        
+
+
         // create mocked Node Instances and fill Node[] to be used by test cases
         final Node node1 = createMock(Element.class);
         final Node node2 = createMock(Element.class);
         final Node node3 = createMock(Text.class);
         final Node node4 = createMock(Element.class);
         nodes = new Node[] {node1, node2, node3, node4};
-        
+
         replay(node1);
         replay(node2);
         replay(node3);
@@ -78,14 +78,14 @@ public class NodeListIteratorTest extend
                 return 0;
             }
         };
-        
+
         if (createIteratorWithStandardConstr) {
             return new NodeListIterator(emptyNodeList);
         } else {
             final Node parentNode = createMock(Node.class);
             expect(parentNode.getChildNodes()).andStubReturn(emptyNodeList);
             replay(parentNode);
-            
+
             return new NodeListIterator(parentNode);
         }
     }
@@ -108,7 +108,7 @@ public class NodeListIteratorTest extend
     public boolean supportsRemove() {
         return false;
     }
-    
+
     //-----------------------------------------------------------------------
     public void testNullConstructor(){
         try{

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/PermutationIteratorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/PermutationIteratorTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/PermutationIteratorTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/PermutationIteratorTest.java Tue Apr 30 14:27:35 2013
@@ -46,12 +46,12 @@ public class PermutationIteratorTest ext
     }
 
     //-----------------------------------------------------------------------
-    
+
     @Override
     public boolean supportsRemove() {
         return false;
     }
-    
+
     @Override
     public boolean supportsEmptyIterator() {
         return false;
@@ -119,7 +119,7 @@ public class PermutationIteratorTest ext
         perm6.add('A');
 
         List<List<Character>> results = new ArrayList<List<Character>>();
-        
+
         PermutationIterator<Character> it = makeObject();
         while (it.hasNext()) {
             List<Character> next = it.next();
@@ -137,11 +137,11 @@ public class PermutationIteratorTest ext
 
     /**
      * test checking that all the permutations are returned only once.
-     */    
+     */
     public void testPermutationUnicity() {
         List<List<Character>> resultsList = new ArrayList<List<Character>>();
         Set<List<Character>> resultsSet = new HashSet<List<Character>>();
-        
+
         PermutationIterator<Character> it = makeObject();
         while (it.hasNext()) {
             List<Character> permutation = it.next();
@@ -155,7 +155,7 @@ public class PermutationIteratorTest ext
 
     public void testPermutationException() {
         List<List<Character>> resultsList = new ArrayList<List<Character>>();
-        
+
         PermutationIterator<Character> it = makeObject();
         while (it.hasNext()) {
             List<Character> permutation = it.next();
@@ -183,10 +183,10 @@ public class PermutationIteratorTest ext
         PermutationIterator<Character> it = makeEmptyIterator();
         // there is one permutation for an empty set: 0! = 1
         assertTrue(it.hasNext());
-        
+
         List<Character> nextPermutation = it.next();
         assertEquals(0, nextPermutation.size());
-        
+
         assertFalse(it.hasNext());
     }
 }
\ No newline at end of file

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/SingletonListIteratorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/SingletonListIteratorTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/SingletonListIteratorTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/iterators/SingletonListIteratorTest.java Tue Apr 30 14:27:35 2013
@@ -30,13 +30,13 @@ import org.apache.commons.collections4.i
 public class SingletonListIteratorTest<E> extends AbstractListIteratorTest<E> {
 
     private static final Object testValue = "foo";
-    
+
     public SingletonListIteratorTest(final String testName) {
         super(testName);
     }
-    
+
     /**
-     * Returns a SingletonListIterator from which 
+     * Returns a SingletonListIterator from which
      * the element has already been removed.
      */
     @Override
@@ -44,7 +44,7 @@ public class SingletonListIteratorTest<E
         final SingletonListIterator<E> iter = makeObject();
         iter.next();
         iter.remove();
-        iter.reset();        
+        iter.reset();
         return iter;
     }
 
@@ -75,10 +75,10 @@ public class SingletonListIteratorTest<E
         assertTrue( "Iterator should have no previous item", !iter.hasPrevious() );
         assertEquals( "Iteration next index", 0, iter.nextIndex() );
         assertEquals( "Iteration previous index", -1, iter.previousIndex() );
-        
+
         Object iterValue = iter.next();
         assertEquals( "Iteration value is correct", testValue, iterValue );
-        
+
         assertTrue( "Iterator should have no next item", !iter.hasNext() );
         assertTrue( "Iterator should have previous item", iter.hasPrevious() );
         assertEquals( "Iteration next index", 1, iter.nextIndex() );
@@ -86,7 +86,7 @@ public class SingletonListIteratorTest<E
 
         iterValue = iter.previous();
         assertEquals( "Iteration value is correct", testValue, iterValue );
-        
+
         assertTrue( "Iterator should have next item", iter.hasNext() );
         assertTrue( "Iterator should have no previous item", !iter.hasPrevious() );
         assertEquals( "Iteration next index", 0, iter.nextIndex() );
@@ -94,7 +94,7 @@ public class SingletonListIteratorTest<E
 
         iterValue = iter.next();
         assertEquals( "Iteration value is correct", testValue, iterValue );
-        
+
         assertTrue( "Iterator should have no next item", !iter.hasNext() );
         assertTrue( "Iterator should have previous item", iter.hasPrevious() );
         assertEquals( "Iteration next index", 1, iter.nextIndex() );
@@ -103,21 +103,21 @@ public class SingletonListIteratorTest<E
         try {
             iter.next();
         } catch (final Exception e) {
-          assertTrue("NoSuchElementException must be thrown", 
+          assertTrue("NoSuchElementException must be thrown",
              e.getClass().equals(new NoSuchElementException().getClass()));
         }
         iter.previous();
         try {
             iter.previous();
         } catch (final Exception e) {
-          assertTrue("NoSuchElementException must be thrown", 
+          assertTrue("NoSuchElementException must be thrown",
              e.getClass().equals(new NoSuchElementException().getClass()));
         }
     }
-    
+
     public void testReset() {
         final ResettableListIterator<E> it = makeObject();
-        
+
         assertEquals(true, it.hasNext());
         assertEquals(false, it.hasPrevious());
         assertEquals(testValue, it.next());
@@ -125,18 +125,18 @@ public class SingletonListIteratorTest<E
         assertEquals(true, it.hasPrevious());
 
         it.reset();
-        
+
         assertEquals(true, it.hasNext());
         assertEquals(false, it.hasPrevious());
         assertEquals(testValue, it.next());
         assertEquals(false, it.hasNext());
         assertEquals(true, it.hasPrevious());
-        
+
         it.reset();
         it.reset();
-        
+
         assertEquals(true, it.hasNext());
     }
-    
+
 }
 

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/keyvalue/AbstractMapEntryTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/keyvalue/AbstractMapEntryTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/keyvalue/AbstractMapEntryTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/keyvalue/AbstractMapEntryTest.java Tue Apr 30 14:27:35 2013
@@ -32,13 +32,13 @@ import junit.framework.TestCase;
  * @version $Id$
  */
 public abstract class AbstractMapEntryTest<K, V> extends TestCase {
-    
+
     protected final String key = "name";
     protected final String value = "duke";
 
     /**
      * JUnit constructor.
-     * 
+     *
      * @param testName  the test name
      */
     public AbstractMapEntryTest(final String testName) {

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/keyvalue/DefaultKeyValueTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/keyvalue/DefaultKeyValueTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/keyvalue/DefaultKeyValueTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/keyvalue/DefaultKeyValueTest.java Tue Apr 30 14:27:35 2013
@@ -30,13 +30,13 @@ import junit.framework.TestCase;
  * @version $Id$
  */
 public class DefaultKeyValueTest<K, V> extends TestCase {
-    
+
     private final String key = "name";
     private final String value = "duke";
 
     /**
      * JUnit constructor.
-     * 
+     *
      * @param testName  the test name
      */
     public DefaultKeyValueTest(final String testName) {

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/keyvalue/MultiKeyTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/keyvalue/MultiKeyTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/keyvalue/MultiKeyTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/keyvalue/MultiKeyTest.java Tue Apr 30 14:27:35 2013
@@ -218,7 +218,7 @@ public class MultiKeyTest extends TestCa
         @Override
         public boolean equals(final Object obj)
         {
-            return obj instanceof SystemHashCodeSimulatingKey 
+            return obj instanceof SystemHashCodeSimulatingKey
                 && name.equals(((SystemHashCodeSimulatingKey)obj).name);
         }
 
@@ -233,7 +233,7 @@ public class MultiKeyTest extends TestCa
             return this;
         }
     }
-    
+
     public void testEqualsAfterSerialization() throws IOException, ClassNotFoundException
     {
         SystemHashCodeSimulatingKey sysKey = new SystemHashCodeSimulatingKey("test");
@@ -258,6 +258,6 @@ public class MultiKeyTest extends TestCa
         assertEquals(2, sysKey.hashCode()); // different hashCode now
 
         final MultiKey<?> mk2 = new MultiKey<Object>(ONE, sysKey);
-        assertEquals(TWO, map2.get(mk2));        
+        assertEquals(TWO, map2.get(mk2));
     }
 }

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/list/SetUniqueListTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/list/SetUniqueListTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/list/SetUniqueListTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/list/SetUniqueListTest.java Tue Apr 30 14:27:35 2013
@@ -163,7 +163,7 @@ public class SetUniqueListTest<E> extend
         4, list.size());
       assertEquals("Third new element should be at index 0", thirdNewElement, list.get(0));
     }
-    
+
     @Override
     @SuppressWarnings("unchecked")
     public void testListSetByIndex() {
@@ -520,12 +520,12 @@ public class SetUniqueListTest<E> extend
         for (int i = 0; i < 10; ++i) {
             uniqueList.add((E)Integer.valueOf(i));
         }
-        
+
         final Collection<E> retained = new ArrayList<E>(5);
         for (int i = 0; i < 5; ++i) {
             retained.add((E)Integer.valueOf(i * 2));
         }
-        
+
         assertTrue(uniqueList.retainAll(retained));
         assertEquals(5, uniqueList.size());
         assertTrue(uniqueList.contains(Integer.valueOf(0)));
@@ -546,12 +546,12 @@ public class SetUniqueListTest<E> extend
         for (int i = 5; i < 10; ++i) {
             uniqueList.add((E)Integer.valueOf(i));
         }
-        
+
         final Collection<E> retained = new ArrayList<E>(5);
         for (int i = 0; i < 5; ++i) {
             retained.add((E)Integer.valueOf(i * 2));
         }
-        
+
         assertTrue(uniqueList.retainAll(retained));
         assertEquals(5, uniqueList.size());
         assertTrue(uniqueList.contains(Integer.valueOf(0)));
@@ -560,7 +560,7 @@ public class SetUniqueListTest<E> extend
         assertTrue(uniqueList.contains(Integer.valueOf(6)));
         assertTrue(uniqueList.contains(Integer.valueOf(8)));
     }
-    
+
     /*
      * test case for https://issues.apache.org/jira/browse/COLLECTIONS-427
      */
@@ -579,13 +579,13 @@ public class SetUniqueListTest<E> extend
         final long start = System.currentTimeMillis();
         uniqueList.retainAll(toRetain);
         final long stop = System.currentTimeMillis();
-        
+
         // make sure retainAll completes under 5 seconds
         // TODO if test is migrated to JUnit 4, add a Timeout rule.
         // http://kentbeck.github.com/junit/javadoc/latest/org/junit/rules/Timeout.html
         assertTrue(stop - start < 5000);
     }
-    
+
     public void testSetCollections444() {
         final SetUniqueList<Integer> lset = new SetUniqueList<Integer>(new ArrayList<Integer>(), new HashSet<Integer>());
 
@@ -614,7 +614,7 @@ public class SetUniqueListTest<E> extend
             super(list, set);
         }
     }
-    
+
     //-----------------------------------------------------------------------
     @Override
     public String getCompatibilityVersion() {

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/list/TransformedListTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/list/TransformedListTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/list/TransformedListTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/list/TransformedListTest.java Tue Apr 30 14:27:35 2013
@@ -124,7 +124,7 @@ public class TransformedListTest<E> exte
             assertEquals(true, list.contains(Integer.valueOf((String) el)));
             assertEquals(false, list.contains(el));
         }
-        
+
         assertEquals(false, list.remove(els[0]));
         assertEquals(true, list.remove(Integer.valueOf((String) els[0])));
     }

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/list/TreeListTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/list/TreeListTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/list/TreeListTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/list/TreeListTest.java Tue Apr 30 14:27:35 2013
@@ -247,27 +247,27 @@ public class TreeListTest<E> extends Abs
         assertEquals(Integer.valueOf(4), li.next());
         assertEquals(false, li.hasNext());
     }
-    
+
     public void testBugCollections447() {
         final List<String> treeList = new TreeList<String>();
         treeList.add("A");
         treeList.add("B");
         treeList.add("C");
         treeList.add("D");
-        
+
         final ListIterator<String> li = treeList.listIterator();
         assertEquals("A", li.next());
         assertEquals("B", li.next());
-        
+
         assertEquals("B", li.previous());
-                
+
         li.remove(); // Deletes "B"
-                
+
         // previous() after remove() should move to
         // the element before the one just removed
         assertEquals("A", li.previous());
     }
-    
+
     public void testIterationOrder() {
         // COLLECTIONS-433:
         // ensure that the iteration order of elements is correct
@@ -285,12 +285,12 @@ public class TreeListTest<E> extends Abs
                 Integer val = it.next();
                 assertEquals(i++, val.intValue());
             }
-            
+
             while (it.hasPrevious()) {
                 Integer val = it.previous();
                 assertEquals(--i, val.intValue());
             }
-        }        
+        }
     }
 
     public void testIterationOrderAfterAddAll() {
@@ -300,7 +300,7 @@ public class TreeListTest<E> extends Abs
 
         // to simulate different cases in addAll, do different runs where
         // the number of elements already in the list and being added by addAll differ
-        
+
         int size = 1000;
         for (int i = 0; i < 100; i++) {
             List<Integer> other = new ArrayList<Integer>(size);
@@ -311,7 +311,7 @@ public class TreeListTest<E> extends Abs
             for (int j = 0; j < i; j++) {
                 l.add(j);
             }
-            
+
             l.addAll(other);
 
             ListIterator<Integer> it = l.listIterator();
@@ -320,12 +320,12 @@ public class TreeListTest<E> extends Abs
                 Integer val = it.next();
                 assertEquals(cnt++, val.intValue());
             }
-            
+
             while (it.hasPrevious()) {
                 Integer val = it.previous();
                 assertEquals(--cnt, val.intValue());
             }
-        }        
+        }
     }
 
 }

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/AbstractMapTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/AbstractMapTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/AbstractMapTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/AbstractMapTest.java Tue Apr 30 14:27:35 2013
@@ -1998,13 +1998,13 @@ public abstract class AbstractMapTest<K,
 
     public void verifyValues() {
         final List<V> known = new ArrayList<V>(getConfirmed().values());
-        
+
         // bug in IBM JDK: IBM J9 VM build 2.4, JRE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260sr12-20121024_126067
         // a call to values() on an empty map retrieved via TreeMap#headMap or tailMap
         // will render the values view unusable: resulting in NullPointerExceptions or missing values
         // it will also not recover, as the value view is cached internally
         values = getMap().values();
-        
+
         final List<V> test = new ArrayList<V>(values);
 
         final int size = getConfirmed().size();

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/CompositeMapTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/CompositeMapTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/CompositeMapTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/CompositeMapTest.java Tue Apr 30 14:27:35 2013
@@ -23,7 +23,7 @@ import java.util.Collection;
 import org.apache.commons.collections4.map.CompositeMap;
 
 /**
- * Extension of {@link AbstractMapTest} for exercising the 
+ * Extension of {@link AbstractMapTest} for exercising the
  * {@link CompositeMap} implementation.
  *
  * @since 3.0
@@ -32,17 +32,17 @@ import org.apache.commons.collections4.m
 public class CompositeMapTest<K, V> extends AbstractIterableMapTest<K, V> {
     /** used as a flag in MapMutator tests */
     private boolean pass = false;
-    
+
     public CompositeMapTest(final String testName) {
         super(testName);
     }
-    
+
     @Override
     public void setUp() throws Exception {
         super.setUp();
         this.pass = false;
     }
-    
+
     @Override
     public CompositeMap<K, V> makeObject() {
         final CompositeMap<K, V> map = new CompositeMap<K, V>();
@@ -50,7 +50,7 @@ public class CompositeMapTest<K, V> exte
         map.setMutator( new EmptyMapMutator<K, V>() );
         return map;
     }
-    
+
     @SuppressWarnings("unchecked")
     private Map<K, V> buildOne() {
         final HashMap<K, V> map = new HashMap<K, V>();
@@ -58,7 +58,7 @@ public class CompositeMapTest<K, V> exte
         map.put((K) "2", (V) "two");
         return map;
     }
-    
+
     @SuppressWarnings("unchecked")
     public Map<K, V> buildTwo() {
         final HashMap<K, V> map = new HashMap<K, V>();
@@ -66,13 +66,13 @@ public class CompositeMapTest<K, V> exte
         map.put((K) "4", (V) "four");
         return map;
     }
-    
+
     public void testGet() {
         final CompositeMap<K, V> map = new CompositeMap<K, V>(buildOne(), buildTwo());
         assertEquals("one", map.get("1"));
         assertEquals("four", map.get("4"));
     }
-    
+
     @SuppressWarnings("unchecked")
     public void testAddComposited() {
         final CompositeMap<K, V> map = new CompositeMap<K, V>(buildOne(), buildTwo());
@@ -87,7 +87,7 @@ public class CompositeMapTest<K, V> exte
             // expected
         }
     }
-    
+
     @SuppressWarnings("unchecked")
     public void testRemoveComposited() {
         final CompositeMap<K, V> map = new CompositeMap<K, V>(buildOne(), buildTwo());
@@ -95,15 +95,15 @@ public class CompositeMapTest<K, V> exte
         three.put((K) "5", (V) "five");
         map.addComposited(three);
         assertTrue(map.containsKey("5"));
-        
+
         map.removeComposited(three);
         assertFalse(map.containsKey("5"));
-        
+
         map.removeComposited(buildOne());
         assertFalse(map.containsKey("2"));
-        
+
     }
-    
+
     @SuppressWarnings("unchecked")
     public void testRemoveFromUnderlying() {
         final CompositeMap<K, V> map = new CompositeMap<K, V>(buildOne(), buildTwo());
@@ -111,12 +111,12 @@ public class CompositeMapTest<K, V> exte
         three.put((K) "5", (V) "five");
         map.addComposited(three);
         assertTrue(map.containsKey("5"));
-        
+
         //Now remove "5"
         three.remove("5");
         assertFalse(map.containsKey("5"));
     }
-    
+
     @SuppressWarnings("unchecked")
     public void testRemoveFromComposited() {
         final CompositeMap<K, V> map = new CompositeMap<K, V>(buildOne(), buildTwo());
@@ -124,14 +124,14 @@ public class CompositeMapTest<K, V> exte
         three.put((K) "5", (V) "five");
         map.addComposited(three);
         assertTrue(map.containsKey("5"));
-        
+
         //Now remove "5"
         map.remove("5");
         assertFalse(three.containsKey("5"));
     }
-    
+
     public void testResolveCollision() {
-        final CompositeMap<K, V> map = new CompositeMap<K, V>(buildOne(), buildTwo(), 
+        final CompositeMap<K, V> map = new CompositeMap<K, V>(buildOne(), buildTwo(),
             new CompositeMap.MapMutator<K, V>() {
             private static final long serialVersionUID = 1L;
 
@@ -141,24 +141,24 @@ public class CompositeMapTest<K, V> exte
             final Collection<K> intersect) {
                 pass = true;
             }
-            
-            public V put(final CompositeMap<K, V> map, final Map<K, V>[] composited, final K key, 
+
+            public V put(final CompositeMap<K, V> map, final Map<K, V>[] composited, final K key,
                 final V value) {
                 throw new UnsupportedOperationException();
             }
-            
+
             public void putAll(final CompositeMap<K, V> map, final Map<K, V>[] composited, final Map<? extends K, ? extends V> t) {
                 throw new UnsupportedOperationException();
             }
         });
-        
+
         map.addComposited(buildOne());
         assertTrue(pass);
     }
-    
+
     @SuppressWarnings("unchecked")
     public void testPut() {
-        final CompositeMap<K, V> map = new CompositeMap<K, V>(buildOne(), buildTwo(), 
+        final CompositeMap<K, V> map = new CompositeMap<K, V>(buildOne(), buildTwo(),
             new CompositeMap.MapMutator<K, V>() {
             private static final long serialVersionUID = 1L;
             public void resolveCollision(final CompositeMap<K, V> composite,
@@ -167,24 +167,24 @@ public class CompositeMapTest<K, V> exte
             final Collection<K> intersect) {
                 throw new UnsupportedOperationException();
             }
-            
-            public V put(final CompositeMap<K, V> map, final Map<K, V>[] composited, final K key, 
+
+            public V put(final CompositeMap<K, V> map, final Map<K, V>[] composited, final K key,
                 final V value) {
                 pass = true;
                 return (V) "foo";
             }
-            
+
             public void putAll(final CompositeMap<K, V> map, final Map<K, V>[] composited, final Map<? extends K, ? extends V> t) {
                 throw new UnsupportedOperationException();
             }
         });
-        
+
         map.put((K) "willy", (V) "wonka");
         assertTrue(pass);
     }
-    
+
     public void testPutAll() {
-        final CompositeMap<K, V> map = new CompositeMap<K, V>(buildOne(), buildTwo(), 
+        final CompositeMap<K, V> map = new CompositeMap<K, V>(buildOne(), buildTwo(),
             new CompositeMap.MapMutator<K, V>() {
             private static final long serialVersionUID = 1L;
             public void resolveCollision(final CompositeMap<K, V> composite,
@@ -193,17 +193,17 @@ public class CompositeMapTest<K, V> exte
             final Collection<K> intersect) {
                 throw new UnsupportedOperationException();
             }
-            
-            public V put(final CompositeMap<K, V> map, final Map<K, V>[] composited, final K key, 
+
+            public V put(final CompositeMap<K, V> map, final Map<K, V>[] composited, final K key,
                 final V value) {
                 throw new UnsupportedOperationException();
             }
-            
+
             public void putAll(final CompositeMap<K, V> map, final Map<K, V>[] composited, final Map<? extends K, ? extends V> t) {
                 pass = true;
             }
         });
-        
+
         map.putAll(null);
         assertTrue(pass);
     }

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/EmptyMapMutator.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/EmptyMapMutator.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/EmptyMapMutator.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/EmptyMapMutator.java Tue Apr 30 14:27:35 2013
@@ -22,9 +22,9 @@ import java.util.Collection;
 import org.apache.commons.collections4.map.CompositeMap;
 
 /**
- * This class is used in TestCompositeMap. When testing serialization, 
- * the class has to be separate of TestCompositeMap, else the test 
- * class also has to be serialized. 
+ * This class is used in TestCompositeMap. When testing serialization,
+ * the class has to be separate of TestCompositeMap, else the test
+ * class also has to be serialized.
  */
 class EmptyMapMutator<K,V> implements CompositeMap.MapMutator<K,V> {
     /** Serialization version */
@@ -36,11 +36,11 @@ class EmptyMapMutator<K,V> implements Co
     final Collection<K> intersect) {
         // Do nothing
     }
-    
+
     public V put(final CompositeMap<K, V> map, final Map<K, V>[] composited, final K key, final V value) {
         return composited[0].put(key, value);
     }
-    
+
     public void putAll(final CompositeMap<K, V> map, final Map<K, V>[] composited, final Map<? extends K, ? extends V> t) {
         composited[0].putAll(t);
     }

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/LRUMapTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/LRUMapTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/LRUMapTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/LRUMapTest.java Tue Apr 30 14:27:35 2013
@@ -493,11 +493,11 @@ public class LRUMapTest<K, V> extends Ab
             fail();
         } catch (final IndexOutOfBoundsException ex) {}
     }
-    
+
     public void testSynchronizedRemoveFromMapIterator() throws InterruptedException {
 
         final LRUMap<Object, Thread> map = new LRUMap<Object, Thread>(10000);
-        
+
         final Map<Throwable, String> exceptions = new HashMap<Throwable, String>();
         final ThreadGroup tg = new ThreadGroup(getName()) {
             @Override
@@ -573,14 +573,14 @@ public class LRUMapTest<K, V> extends Ab
         }
 
         assertEquals("Exceptions have been thrown: " + exceptions, 0, exceptions.size());
-        assertTrue("Each thread should have put at least 1 element into the map, but only " 
+        assertTrue("Each thread should have put at least 1 element into the map, but only "
                 + counter[0] + " did succeed", counter[0] >= threads.length);
     }
-    
+
     public void testSynchronizedRemoveFromEntrySet() throws InterruptedException {
 
         final Map<Object, Thread> map = new LRUMap<Object, Thread>(10000);
-        
+
         final Map<Throwable, String> exceptions = new HashMap<Throwable, String>();
         final ThreadGroup tg = new ThreadGroup(getName()) {
             @Override
@@ -656,14 +656,14 @@ public class LRUMapTest<K, V> extends Ab
         }
 
         assertEquals("Exceptions have been thrown: " + exceptions, 0, exceptions.size());
-        assertTrue("Each thread should have put at least 1 element into the map, but only " 
+        assertTrue("Each thread should have put at least 1 element into the map, but only "
                 + counter[0] + " did succeed", counter[0] >= threads.length);
     }
-    
+
     public void testSynchronizedRemoveFromKeySet() throws InterruptedException {
 
         final Map<Object, Thread> map = new LRUMap<Object, Thread>(10000);
-        
+
         final Map<Throwable, String> exceptions = new HashMap<Throwable, String>();
         final ThreadGroup tg = new ThreadGroup(getName()) {
             @Override
@@ -739,14 +739,14 @@ public class LRUMapTest<K, V> extends Ab
         }
 
         assertEquals("Exceptions have been thrown: " + exceptions, 0, exceptions.size());
-        assertTrue("Each thread should have put at least 1 element into the map, but only " 
+        assertTrue("Each thread should have put at least 1 element into the map, but only "
                 + counter[0] + " did succeed", counter[0] >= threads.length);
     }
-    
+
     public void testSynchronizedRemoveFromValues() throws InterruptedException {
 
         final Map<Object, Thread> map = new LRUMap<Object, Thread>(10000);
-        
+
         final Map<Throwable, String> exceptions = new HashMap<Throwable, String>();
         final ThreadGroup tg = new ThreadGroup(getName()) {
             @Override
@@ -821,7 +821,7 @@ public class LRUMapTest<K, V> extends Ab
         }
 
         assertEquals("Exceptions have been thrown: " + exceptions, 0, exceptions.size());
-        assertTrue("Each thread should have put at least 1 element into the map, but only " 
+        assertTrue("Each thread should have put at least 1 element into the map, but only "
                 + counter[0] + " did succeed", counter[0] >= threads.length);
     }
 

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/LazySortedMapTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/LazySortedMapTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/LazySortedMapTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/LazySortedMapTest.java Tue Apr 30 14:27:35 2013
@@ -31,7 +31,7 @@ import org.apache.commons.collections4.m
 import org.junit.Test;
 
 /**
- * Extension of {@link LazyMapTest} for exercising the 
+ * Extension of {@link LazyMapTest} for exercising the
  * {@link LazySortedMap} implementation.
  *
  * @since 3.0
@@ -39,18 +39,18 @@ import org.junit.Test;
  */
 @SuppressWarnings("boxing")
 public class LazySortedMapTest<K, V> extends AbstractSortedMapTest<K, V> {
-    
+
     private static final Factory<Integer> oneFactory = FactoryUtils.constantFactory(1);
-   
+
     public LazySortedMapTest(final String testName) {
         super(testName);
     }
-    
+
     @Override
     public SortedMap<K,V> makeObject() {
         return lazySortedMap(new TreeMap<K,V>(), FactoryUtils.<V>nullFactory());
     }
-    
+
     @Override
     public boolean isSubMapViewsSerializable() {
         // TODO TreeMap sub map views have a bug in deserialization.
@@ -68,7 +68,7 @@ public class LazySortedMapTest<K, V> ext
     public void testMapGet() {
         //TODO eliminate need for this via superclass - see svn history.
     }
-    
+
     @Test
     public void mapGet() {
         Map<Integer, Number> map = lazySortedMap(new TreeMap<Integer,Number>(), oneFactory);
@@ -81,9 +81,9 @@ public class LazySortedMapTest<K, V> ext
         final Number o = map.get(5);
         assertEquals(null,o);
         assertEquals(1, map.size());
-        
+
     }
-    
+
     //-----------------------------------------------------------------------
     public void testSortOrder() {
         final SortedMap<String, Number> map = lazySortedMap(new TreeMap<String,Number>(), oneFactory);
@@ -92,22 +92,22 @@ public class LazySortedMapTest<K, V> ext
         map.put("C", 8);
         assertEquals("First key should be A", "A", map.firstKey());
         assertEquals("Last key should be C", "C", map.lastKey());
-        assertEquals("First key in tail map should be B", 
+        assertEquals("First key in tail map should be B",
             "B", map.tailMap("B").firstKey());
-        assertEquals("Last key in head map should be B", 
+        assertEquals("Last key in head map should be B",
             "B", map.headMap("C").lastKey());
         assertEquals("Last key in submap should be B",
             "B", map.subMap("A","C").lastKey());
-        
+
         final Comparator<?> c = map.comparator();
-        assertTrue("natural order, so comparator should be null", 
-            c == null);      
-    } 
-    
+        assertTrue("natural order, so comparator should be null",
+            c == null);
+    }
+
     public void testTransformerDecorate() {
         final Transformer<Object, Integer> transformer = TransformerUtils.asTransformer(oneFactory);
-        SortedMap<Integer, Number> map = lazySortedMap(new TreeMap<Integer, Number>(), transformer);     
-        assertTrue(map instanceof LazySortedMap);  
+        SortedMap<Integer, Number> map = lazySortedMap(new TreeMap<Integer, Number>(), transformer);
+        assertTrue(map instanceof LazySortedMap);
          try {
             map = lazySortedMap(new TreeMap<Integer, Number>(), (Transformer<Integer, Number>) null);
             fail("Expecting IllegalArgumentException for null transformer");
@@ -119,9 +119,9 @@ public class LazySortedMapTest<K, V> ext
             fail("Expecting IllegalArgumentException for null map");
         } catch (final IllegalArgumentException e) {
             // expected
-        } 
+        }
     }
-    
+
     @Override
     public String getCompatibilityVersion() {
         return "4";

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/ListOrderedMapTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/ListOrderedMapTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/ListOrderedMapTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/ListOrderedMapTest.java Tue Apr 30 14:27:35 2013
@@ -346,13 +346,13 @@ public class ListOrderedMapTest<K, V> ex
         }
 
         lom.putAll(3, map);
-        
+
         final List<K> orderedList = lom.asList();
         for (int i = 0; i < size; i++) {
             assertEquals(i, orderedList.get(i));
         }
     }
-    
+
     //-----------------------------------------------------------------------
     public void testValueList_getByIndex() {
         resetFull();

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/PassiveExpiringMapTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/PassiveExpiringMapTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/PassiveExpiringMapTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/PassiveExpiringMapTest.java Tue Apr 30 14:27:35 2013
@@ -65,7 +65,7 @@ public class PassiveExpiringMapTest<K, V
 //    public void testCreate() throws Exception {
 //        writeExternalFormToDisk((java.io.Serializable) makeObject(),
 //                "src/test/resources/data/test/PassiveExpiringMap.emptyCollection.version4.obj");
-//    
+//
 //        writeExternalFormToDisk((java.io.Serializable) makeFullMap(),
 //                "src/test/resources/data/test/PassiveExpiringMap.fullCollection.version4.obj");
 //    }

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/ReferenceMapTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/ReferenceMapTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/ReferenceMapTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/ReferenceMapTest.java Tue Apr 30 14:27:35 2013
@@ -70,7 +70,7 @@ public class ReferenceMapTest<K, V> exte
 //            (java.io.Serializable) map,
 //            "src/test/resources/data/test/ReferenceMap.fullCollection.version4.obj");
 //    }
-    
+
     //-----------------------------------------------------------------------
     @SuppressWarnings("unchecked")
     public void testNullHandling() {

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/TransformedSortedMapTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/TransformedSortedMapTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/TransformedSortedMapTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/TransformedSortedMapTest.java Tue Apr 30 14:27:35 2013
@@ -51,10 +51,10 @@ public class TransformedSortedMapTest<K,
         // there are several bugs in the following JVM:
         // IBM J9 VM build 2.4, JRE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260sr12-20121024_126067
         // thus disabling tests related to these bugs
-        
+
         final String vmName = System.getProperty("java.vm.name");
         final String version = System.getProperty("java.version");
-        
+
         if (vmName == null || version == null) {
             return null;
         }

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/queue/CircularFifoQueueTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/queue/CircularFifoQueueTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/queue/CircularFifoQueueTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/queue/CircularFifoQueueTest.java Tue Apr 30 14:27:35 2013
@@ -408,7 +408,7 @@ public class CircularFifoQueueTest<E> ex
 
     public void testGetIndex() {
         resetFull();
-        
+
         final CircularFifoQueue<E> queue = getCollection();
         final List<E> confirmed = (List<E>) getConfirmed();
         for (int i = 0; i < confirmed.size(); i++) {
@@ -418,10 +418,10 @@ public class CircularFifoQueueTest<E> ex
         // remove the first two elements and check again
         queue.remove();
         queue.remove();
-        
+
         for (int i = 0; i < queue.size(); i++) {
             assertEquals(confirmed.get(i + 2), queue.get(i));
-        }        
+        }
     }
 
     @Override

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/queue/PredicatedQueueTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/queue/PredicatedQueueTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/queue/PredicatedQueueTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/queue/PredicatedQueueTest.java Tue Apr 30 14:27:35 2013
@@ -51,7 +51,7 @@ public class PredicatedQueueTest<E> exte
     public Queue<E> makeObject() {
         return decorateCollection(new LinkedList<E>(), truePredicate);
     }
-    
+
     @Override
     public Queue<E> makeFullCollection() {
         final Queue<E> queue = new LinkedList<E>();

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/queue/TransformedQueueTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/queue/TransformedQueueTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/queue/TransformedQueueTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/queue/TransformedQueueTest.java Tue Apr 30 14:27:35 2013
@@ -32,7 +32,7 @@ import org.apache.commons.collections4.c
  * @version $Id$
  */
 public class TransformedQueueTest<E> extends AbstractQueueTest<E> {
-    
+
     public TransformedQueueTest(final String testName) {
         super(testName);
     }
@@ -77,10 +77,10 @@ public class TransformedQueueTest<E> ext
             assertEquals(true, queue.contains(Integer.valueOf((String) els[i])));
             assertEquals(false, queue.contains(els[i]));
         }
-        
+
         assertEquals(false, queue.remove(els[0]));
         assertEquals(true, queue.remove(Integer.valueOf((String) els[0])));
-        
+
     }
 
     @SuppressWarnings({ "rawtypes", "unchecked" })
@@ -97,7 +97,7 @@ public class TransformedQueueTest<E> ext
             assertEquals(true, queue.contains(Integer.valueOf((String) el)));
             assertEquals(false, queue.contains(el));
         }
-        
+
         assertEquals(false, queue.remove(els[0]));
         assertEquals(true, queue.remove(Integer.valueOf((String) els[0])));
     }
@@ -106,7 +106,7 @@ public class TransformedQueueTest<E> ext
     public String getCompatibilityVersion() {
         return "4";
     }
-    
+
 //  public void testCreate() throws Exception {
 //      resetEmpty();
 //      writeExternalFormToDisk((java.io.Serializable) getCollection(), "src/test/resources/data/test/TransformedQueue.emptyCollection.version4.obj");

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/set/AbstractSetTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/set/AbstractSetTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/set/AbstractSetTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/set/AbstractSetTest.java Tue Apr 30 14:27:35 2013
@@ -59,9 +59,9 @@ public abstract class AbstractSetTest<E>
     @Override
     public void verify() {
         super.verify();
-        
+
         assertEquals("Sets should be equal", getConfirmed(), getCollection());
-        assertEquals("Sets should have equal hashCodes", 
+        assertEquals("Sets should have equal hashCodes",
                      getConfirmed().hashCode(), getCollection().hashCode());
         final Collection<E> set = makeConfirmedCollection();
         final Iterator<E> iterator = getCollection().iterator();
@@ -126,7 +126,7 @@ public abstract class AbstractSetTest<E>
 
     //-----------------------------------------------------------------------
     /**
-     * Return the {@link AbstractCollectionTest#collection} fixture, but cast as a Set.  
+     * Return the {@link AbstractCollectionTest#collection} fixture, but cast as a Set.
      */
     @Override
     public Set<E> getCollection() {
@@ -169,11 +169,11 @@ public abstract class AbstractSetTest<E>
      */
     public void testSetHashCode() {
         resetEmpty();
-        assertEquals("Empty sets have equal hashCodes", 
+        assertEquals("Empty sets have equal hashCodes",
                 getCollection().hashCode(), getConfirmed().hashCode());
 
         resetFull();
-        assertEquals("Equal sets have equal hashCodes", 
+        assertEquals("Equal sets have equal hashCodes",
                 getCollection().hashCode(), getConfirmed().hashCode());
     }
 

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/set/AbstractSortedSetTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/set/AbstractSortedSetTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/set/AbstractSortedSetTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/set/AbstractSortedSetTest.java Tue Apr 30 14:27:35 2013
@@ -52,7 +52,7 @@ public abstract class AbstractSortedSetT
     @Override
     public void verify() {
         super.verify();
-        
+
         // Check that iterator returns elements in order and first() and last()
         // are consistent
         final Iterator<E> colliter = getCollection().iterator();
@@ -65,7 +65,7 @@ public abstract class AbstractSortedSetT
                 last = first;
             } else {
               last = colliter.next();
-            }  
+            }
             assertEquals("Element appears to be out of order.", last, confiter.next());
         }
         if (getCollection().size() > 0) {
@@ -302,12 +302,12 @@ public abstract class AbstractSortedSetT
         public SortedSet<E> makeFullCollection() {
             return getSubSet(AbstractSortedSetTest.this.makeFullCollection());
         }
-        
+
         @Override
         public boolean isTestSerialization() {
             return false;
         }
-        
+
         @Override
         public BulkTest bulkTestSortedSetSubSet() {
             return null;  // prevent infinite recursion

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/set/EmptySetMutator.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/set/EmptySetMutator.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/set/EmptySetMutator.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/set/EmptySetMutator.java Tue Apr 30 14:27:35 2013
@@ -21,9 +21,9 @@ import java.util.List;
 import java.util.Set;
 
 /**
- * This class is used in CompositeSetTest. When testing serialization, 
- * the class has to be separate of CompositeSetTest, else the test 
- * class also has to be serialized. 
+ * This class is used in CompositeSetTest. When testing serialization,
+ * the class has to be separate of CompositeSetTest, else the test
+ * class also has to be serialized.
  */
 class EmptySetMutator<E> implements CompositeSet.SetMutator<E> {
 
@@ -39,12 +39,12 @@ class EmptySetMutator<E> implements Comp
     public void resolveCollision(final CompositeSet<E> comp, final Set<E> existing, final Set<E> added, final Collection<E> intersects) {
         throw new IllegalArgumentException();
     }
-    
+
     public boolean add(final CompositeSet<E> composite, final List<Set<E>> collections, final E obj) {
         return contained.add(obj);
     }
-    
+
     public boolean addAll(final CompositeSet<E> composite, final List<Set<E>> collections, final Collection<? extends E> coll) {
         return contained.addAll(coll);
-    }    
+    }
 }

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/set/TransformedSetTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/set/TransformedSetTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/set/TransformedSetTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/set/TransformedSetTest.java Tue Apr 30 14:27:35 2013
@@ -94,7 +94,7 @@ public class TransformedSetTest<E> exten
             assertEquals(true, set.contains(Integer.valueOf((String) el)));
             assertEquals(false, set.contains(el));
         }
-        
+
         assertEquals(false, set.remove(els[0]));
         assertEquals(true, set.remove(Integer.valueOf((String) els[0])));
     }

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/set/TransformedSortedSetTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/set/TransformedSortedSetTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/set/TransformedSortedSetTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/set/TransformedSortedSetTest.java Tue Apr 30 14:27:35 2013
@@ -86,7 +86,7 @@ public class TransformedSortedSetTest<E>
         for (final Object el : els) {
             assertEquals(true, set.contains(Integer.valueOf((String) el)));
         }
-        
+
         assertEquals(true, set.remove(Integer.valueOf((String) els[0])));
     }
 

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/trie/ByteArrayKeyAnalyzerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/trie/ByteArrayKeyAnalyzerTest.java?rev=1477661&r1=1477660&r2=1477661&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/trie/ByteArrayKeyAnalyzerTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/trie/ByteArrayKeyAnalyzerTest.java Tue Apr 30 14:27:35 2013
@@ -26,13 +26,13 @@ import org.junit.Test;
 public class ByteArrayKeyAnalyzerTest {
 
     private static final int SIZE = 20000;
-    
+
     @Test
     public void bitSet() {
         final byte[] key = toByteArray("10100110", 2);
         final ByteArrayKeyAnalyzer ka = new ByteArrayKeyAnalyzer(key.length * 8);
         final int length = ka.lengthInBits(key);
-        
+
         Assert.assertTrue(ka.isBitSet(key, 0, length));
         Assert.assertFalse(ka.isBitSet(key, 1, length));
         Assert.assertTrue(ka.isBitSet(key, 2, length));
@@ -42,67 +42,67 @@ public class ByteArrayKeyAnalyzerTest {
         Assert.assertTrue(ka.isBitSet(key, 6, length));
         Assert.assertFalse(ka.isBitSet(key, 7, length));
     }
-    
+
     @Test
     public void keys() {
         final PatriciaTrie<byte[], BigInteger> trie
             = new PatriciaTrie<byte[], BigInteger>(ByteArrayKeyAnalyzer.INSTANCE);
-        
-        final Map<byte[], BigInteger> map 
+
+        final Map<byte[], BigInteger> map
             = new TreeMap<byte[], BigInteger>(ByteArrayKeyAnalyzer.INSTANCE);
-        
+
         for (int i = 0; i < SIZE; i++) {
             final BigInteger value = BigInteger.valueOf(i);
             final byte[] key = toByteArray(value);
-            
+
             final BigInteger existing = trie.put(key, value);
             Assert.assertNull(existing);
-            
+
             map.put(key, value);
         }
-        
+
         Assert.assertEquals(map.size(), trie.size());
-        
+
         for (final byte[] key : map.keySet()) {
             final BigInteger expected = new BigInteger(1, key);
             final BigInteger value = trie.get(key);
-            
+
             Assert.assertEquals(expected, value);
         }
     }
-    
+
     @Test
     public void prefix() {
         final byte[] prefix   = toByteArray("00001010", 2);
         final byte[] key1     = toByteArray("11001010", 2);
         final byte[] key2     = toByteArray("10101100", 2);
-        
+
         final ByteArrayKeyAnalyzer keyAnalyzer = new ByteArrayKeyAnalyzer(key1.length * 8);
-        
+
         final int prefixLength = keyAnalyzer.lengthInBits(prefix);
-            
+
         Assert.assertFalse(keyAnalyzer.isPrefix(prefix, 4, prefixLength, key1));
         Assert.assertTrue(keyAnalyzer.isPrefix(prefix, 4, prefixLength, key2));
     }
-    
+
     private static byte[] toByteArray(final String value, final int radix) {
         return toByteArray(Long.parseLong(value, radix));
     }
-    
+
     private static byte[] toByteArray(final long value) {
         return toByteArray(BigInteger.valueOf(value));
     }
-    
+
     private static byte[] toByteArray(final BigInteger value) {
         final byte[] src = value.toByteArray();
         if (src.length <= 1) {
             return src;
         }
-        
+
         if (src[0] != 0) {
             return src;
         }
-        
+
         final byte[] dst = new byte[src.length-1];
         System.arraycopy(src, 1, dst, 0, dst.length);
         return dst;