From be6789ced66778415184f6d36bf662704cbbd911 Mon Sep 17 00:00:00 2001 From: ggregory Date: Sat, 14 Oct 2017 13:41:44 -0600 Subject: [PATCH] Remove trailing white spaces on all lines. --- .../commons/collections4/BagUtilsTest.java | 4 +- .../collections4/CollectionUtilsTest.java | 6 +- .../collections4/ComparatorUtilsTest.java | 4 +- .../collections4/FluentIterableTest.java | 2 +- .../collections4/IterableUtilsTest.java | 32 +++---- .../collections4/IteratorUtilsTest.java | 18 ++-- .../commons/collections4/MapUtilsTest.java | 90 +++++++++---------- .../commons/collections4/MockTestCase.java | 4 +- .../collections4/PredicateUtilsTest.java | 30 +++---- .../commons/collections4/QueueUtilsTest.java | 4 +- .../commons/collections4/SetUtilsTest.java | 6 +- .../collections4/TransformerUtilsTest.java | 4 +- .../commons/collections4/TrieUtilsTest.java | 2 +- .../collections4/bag/AbstractBagTest.java | 16 ++-- .../collections4/bag/CollectionBagTest.java | 4 +- .../bag/CollectionSortedBagTest.java | 4 +- .../commons/collections4/bag/TreeBagTest.java | 2 +- .../collections4/bag/UnmodifiableBagTest.java | 2 +- .../bag/UnmodifiableSortedBagTest.java | 2 +- .../bidimap/DualTreeBidiMap2Test.java | 2 +- .../bidimap/DualTreeBidiMapTest.java | 2 +- .../bidimap/UnmodifiableBidiMapTest.java | 4 +- .../UnmodifiableOrderedBidiMapTest.java | 2 +- .../UnmodifiableSortedBidiMapTest.java | 2 +- .../collection/AbstractCollectionTest.java | 4 +- .../PredicatedCollectionBuilderTest.java | 10 +-- .../collection/PredicatedCollectionTest.java | 2 +- .../UnmodifiableBoundedCollectionTest.java | 8 +- .../UnmodifiableCollectionTest.java | 4 +- .../AbstractAnyAllOnePredicateTest.java | 2 +- .../iterators/FilterIteratorTest.java | 2 +- .../iterators/IteratorEnumerationTest.java | 8 +- .../iterators/ListIteratorWrapper2Test.java | 2 +- .../iterators/ListIteratorWrapperTest.java | 2 +- .../iterators/PeekingIteratorTest.java | 12 +-- .../iterators/PushbackIteratorTest.java | 2 +- .../iterators/UniqueFilterIteratorTest.java | 2 +- .../collections4/keyvalue/MultiKeyTest.java | 4 +- .../collections4/list/GrowthListTest.java | 2 +- .../collections4/list/PredicatedListTest.java | 2 +- .../map/CaseInsensitiveMapTest.java | 2 +- .../collections4/map/DefaultedMapTest.java | 2 +- .../collections4/map/Flat3MapTest.java | 10 +-- .../commons/collections4/map/LRUMapTest.java | 2 +- .../commons/collections4/map/LazyMapTest.java | 2 +- .../collections4/map/MultiKeyMapTest.java | 2 +- .../collections4/map/MultiValueMapTest.java | 8 +- .../map/PassiveExpiringMapTest.java | 8 +- .../collections4/map/PredicatedMapTest.java | 2 +- .../map/TransformedSortedMapTest.java | 2 +- .../multimap/AbstractMultiValuedMapTest.java | 2 +- .../TransformedMultiValuedMapTest.java | 2 +- .../UnmodifiableMultiValuedMapTest.java | 4 +- .../multiset/AbstractMultiSetTest.java | 16 ++-- .../multiset/UnmodifiableMultiSetTest.java | 2 +- .../collections4/queue/AbstractQueueTest.java | 22 ++--- .../queue/UnmodifiableQueueTest.java | 2 +- .../collections4/set/ListOrderedSetTest.java | 2 +- .../collections4/set/PredicatedSetTest.java | 2 +- .../collections4/set/UnmodifiableSetTest.java | 2 +- .../collections4/trie/PatriciaTrieTest.java | 2 +- 61 files changed, 207 insertions(+), 207 deletions(-) diff --git a/src/test/java/org/apache/commons/collections4/BagUtilsTest.java b/src/test/java/org/apache/commons/collections4/BagUtilsTest.java index 6d0f856b0..4c90700d0 100644 --- a/src/test/java/org/apache/commons/collections4/BagUtilsTest.java +++ b/src/test/java/org/apache/commons/collections4/BagUtilsTest.java @@ -66,7 +66,7 @@ public class BagUtilsTest { } catch (final NullPointerException ex) { // expected } - + assertSame("UnmodifiableBag shall not be decorated", bag, BagUtils.unmodifiableBag(bag)); } @@ -132,7 +132,7 @@ public class BagUtilsTest { } catch (final NullPointerException ex) { // expected } - + assertSame("UnmodifiableSortedBag shall not be decorated", bag, BagUtils.unmodifiableSortedBag(bag)); } diff --git a/src/test/java/org/apache/commons/collections4/CollectionUtilsTest.java b/src/test/java/org/apache/commons/collections4/CollectionUtilsTest.java index 9553610b7..dcfa8724a 100644 --- a/src/test/java/org/apache/commons/collections4/CollectionUtilsTest.java +++ b/src/test/java/org/apache/commons/collections4/CollectionUtilsTest.java @@ -1183,7 +1183,7 @@ public class CollectionUtilsTest extends MockTestCase { input.add(2); input.add(3); input.add(4); - + List output = new ArrayList<>(); List rejected = new ArrayList<>(); @@ -1192,11 +1192,11 @@ public class CollectionUtilsTest extends MockTestCase { // output contains 2 assertEquals(1, output.size()); assertEquals(2, CollectionUtils.extractSingleton(output).intValue()); - + // rejected contains 1, 3, and 4 Integer[] expected = {1, 3, 4}; Assert.assertArrayEquals(expected, rejected.toArray()); - + output.clear(); rejected.clear(); CollectionUtils.select((List) null, EQUALS_TWO, output, rejected); diff --git a/src/test/java/org/apache/commons/collections4/ComparatorUtilsTest.java b/src/test/java/org/apache/commons/collections4/ComparatorUtilsTest.java index 4c4b1a90f..e8fabd4cb 100644 --- a/src/test/java/org/apache/commons/collections4/ComparatorUtilsTest.java +++ b/src/test/java/org/apache/commons/collections4/ComparatorUtilsTest.java @@ -60,7 +60,7 @@ public class ComparatorUtilsTest { assertEquals(Integer.valueOf(10), ComparatorUtils.max(1, 10, null)); assertEquals(Integer.valueOf(10), ComparatorUtils.max(10, -10, null)); - + assertEquals(Integer.valueOf(1), ComparatorUtils.max(1, 10, reversed)); assertEquals(Integer.valueOf(-10), ComparatorUtils.max(10, -10, reversed)); @@ -86,7 +86,7 @@ public class ComparatorUtilsTest { assertEquals(Integer.valueOf(1), ComparatorUtils.min(1, 10, null)); assertEquals(Integer.valueOf(-10), ComparatorUtils.min(10, -10, null)); - + assertEquals(Integer.valueOf(10), ComparatorUtils.min(1, 10, reversed)); assertEquals(Integer.valueOf(10), ComparatorUtils.min(10, -10, reversed)); diff --git a/src/test/java/org/apache/commons/collections4/FluentIterableTest.java b/src/test/java/org/apache/commons/collections4/FluentIterableTest.java index 5b1851fc2..02b39eb18 100644 --- a/src/test/java/org/apache/commons/collections4/FluentIterableTest.java +++ b/src/test/java/org/apache/commons/collections4/FluentIterableTest.java @@ -381,7 +381,7 @@ public class FluentIterableTest { } catch (NullPointerException npe) { // expected } - + result = FluentIterable .of(Arrays.asList(1, 4, 7)) .zip(Arrays.asList(2, 5, 8), Arrays.asList(3, 6, 9)) diff --git a/src/test/java/org/apache/commons/collections4/IterableUtilsTest.java b/src/test/java/org/apache/commons/collections4/IterableUtilsTest.java index 7fd48737d..59ff2bbea 100644 --- a/src/test/java/org/apache/commons/collections4/IterableUtilsTest.java +++ b/src/test/java/org/apache/commons/collections4/IterableUtilsTest.java @@ -331,7 +331,7 @@ public class IterableUtilsTest { @Test public void matchesAny() { final List list = new ArrayList<>(); - + try { assertFalse(IterableUtils.matchesAny(null, null)); fail("predicate must not be null"); @@ -414,17 +414,17 @@ public class IterableUtilsTest { input.add(4); List> partitions = IterableUtils.partition(input, EQUALS_TWO); assertEquals(2, partitions.size()); - + // first partition contains 2 Collection partition = partitions.get(0); assertEquals(1, partition.size()); assertEquals(2, CollectionUtils.extractSingleton(partition).intValue()); - + // second partition contains 1, 3, and 4 Integer[] expected = {1, 3, 4}; partition = partitions.get(1); Assert.assertArrayEquals(expected, partition.toArray()); - + partitions = IterableUtils.partition((List) null, EQUALS_TWO); assertEquals(2, partitions.size()); assertTrue(partitions.get(0).isEmpty()); @@ -456,12 +456,12 @@ public class IterableUtilsTest { Collection partition = partitions.get(0); assertEquals(1, partition.size()); assertEquals(2, partition.iterator().next().intValue()); - + // second partition contains 4 partition = partitions.get(1); assertEquals(1, partition.size()); assertEquals(4, partition.iterator().next().intValue()); - + // third partition contains 1 and 3 Integer[] expected = {1, 3}; partition = partitions.get(2); @@ -478,7 +478,7 @@ public class IterableUtilsTest { public void testToString() { String result = IterableUtils.toString(iterableA); assertEquals("[1, 2, 2, 3, 3, 3, 4, 4, 4, 4]", result); - + result = IterableUtils.toString(new ArrayList()); assertEquals("[]", result); @@ -514,38 +514,38 @@ public class IterableUtilsTest { @Test public void testToStringDelimiter() { - + Transformer transformer = new Transformer() { @Override public String transform(Integer input) { return new Integer(input * 2).toString(); } }; - + String result = IterableUtils.toString(iterableA, transformer, "", "", ""); assertEquals("2446668888", result); - + result = IterableUtils.toString(iterableA, transformer, ",", "", ""); assertEquals("2,4,4,6,6,6,8,8,8,8", result); - + result = IterableUtils.toString(iterableA, transformer, "", "[", "]"); assertEquals("[2446668888]", result); - + result = IterableUtils.toString(iterableA, transformer, ",", "[", "]"); assertEquals("[2,4,4,6,6,6,8,8,8,8]", result); - + result = IterableUtils.toString(iterableA, transformer, ",", "[[", "]]"); assertEquals("[[2,4,4,6,6,6,8,8,8,8]]", result); - + result = IterableUtils.toString(iterableA, transformer, ",,", "[", "]"); assertEquals("[2,,4,,4,,6,,6,,6,,8,,8,,8,,8]", result); - + result = IterableUtils.toString(iterableA, transformer, ",,", "((", "))"); assertEquals("((2,,4,,4,,6,,6,,6,,8,,8,,8,,8))", result); result = IterableUtils.toString(new ArrayList(), transformer, "", "(", ")"); assertEquals("()", result); - + result = IterableUtils.toString(new ArrayList(), transformer, "", "", ""); assertEquals("", result); } diff --git a/src/test/java/org/apache/commons/collections4/IteratorUtilsTest.java b/src/test/java/org/apache/commons/collections4/IteratorUtilsTest.java index 38431daed..09fe80377 100644 --- a/src/test/java/org/apache/commons/collections4/IteratorUtilsTest.java +++ b/src/test/java/org/apache/commons/collections4/IteratorUtilsTest.java @@ -184,7 +184,7 @@ public class IteratorUtilsTest { list.add(null); final Object[] result = IteratorUtils.toArray(list.iterator()); assertEquals(list, Arrays.asList(result)); - + try { IteratorUtils.toArray(null); fail("Expecting NullPointerException"); @@ -201,14 +201,14 @@ public class IteratorUtilsTest { list.add(null); final String[] result = IteratorUtils.toArray(list.iterator(), String.class); assertEquals(list, Arrays.asList(result)); - + try { IteratorUtils.toArray(list.iterator(), null); fail("Expecting NullPointerException"); } catch (final NullPointerException ex) { // success } - + try { IteratorUtils.toArray(null, String.class); fail("Expecting NullPointerException"); @@ -972,7 +972,7 @@ public class IteratorUtilsTest { } // natural ordering - Iterator it = + Iterator it = IteratorUtils.collatedIterator(null, collectionOdd.iterator(), collectionEven.iterator()); List result = IteratorUtils.toList(it); @@ -1115,14 +1115,14 @@ public class IteratorUtilsTest { } assertTrue(!iterator.hasNext()); } - + @Test public void testGetIterator() { final Object[] objArray = {"a", "b", "c"}; final Map inMap = new HashMap<>(); final Node[] nodes = createNodes(); - final NodeList nodeList = createNodeList(nodes); - + final NodeList nodeList = createNodeList(nodes); + assertTrue("returns empty iterator when null passed", IteratorUtils.getIterator(null) instanceof EmptyIterator); assertTrue("returns Iterator when Iterator directly ", IteratorUtils.getIterator(iterableA.iterator()) instanceof Iterator); assertTrue("returns Iterator when iterable passed", IteratorUtils.getIterator(iterableA) instanceof Iterator); @@ -1130,9 +1130,9 @@ public class IteratorUtilsTest { assertTrue("returns Iterator when Map passed", IteratorUtils.getIterator(inMap) instanceof Iterator); assertTrue("returns NodeListIterator when nodeList passed", IteratorUtils.getIterator(nodeList) instanceof NodeListIterator); assertTrue("returns EnumerationIterator when Enumeration passed", IteratorUtils.getIterator(new Vector().elements()) instanceof EnumerationIterator); - + } - + @Test public void testToListIterator() { final List list = new ArrayList<>(); diff --git a/src/test/java/org/apache/commons/collections4/MapUtilsTest.java b/src/test/java/org/apache/commons/collections4/MapUtilsTest.java index 21f20c401..879a605e8 100644 --- a/src/test/java/org/apache/commons/collections4/MapUtilsTest.java +++ b/src/test/java/org/apache/commons/collections4/MapUtilsTest.java @@ -248,7 +248,7 @@ public class MapUtilsTest extends AbstractAvailableLocalesTest { assertEquals(true, test.containsKey("BLUE")); assertEquals("#0000FF", test.get("BLUE")); assertEquals(3, test.size()); - + test = MapUtils.putAll(new HashMap(), null); assertEquals(0, test.size()); @@ -905,24 +905,24 @@ public class MapUtilsTest extends AbstractAvailableLocalesTest { assertSame(iMap, MapUtils.iterableMap(iMap)); } - @Test + @Test public void testSize0() { assertEquals(0, MapUtils.size(new HashMap<>())); } - @Test + @Test public void testSizeNull() { assertEquals(0, MapUtils.size(null)); } - @Test + @Test public void testSize() { final HashMap map = new HashMap<>(); map.put("A", "1"); map.put("B", "2"); assertEquals(2, MapUtils.size(map)); } - + @Test public void testToProperties() { final Map in = new HashMap<>(); @@ -936,7 +936,7 @@ public class MapUtilsTest extends AbstractAvailableLocalesTest { assertEquals(in.get("key2"), out.get("key2")); assertEquals(in.get("key3"), out.get("key3")); } - + @Test public void testToPropertiesEmpty() { final Map in = null; @@ -944,12 +944,12 @@ public class MapUtilsTest extends AbstractAvailableLocalesTest { assertEquals(out.size(), 0); } - + @Test public void testgetDoubleValue() { final Map in = new HashMap<>(); in.put("key", 2.0); - + assertEquals(2.0, MapUtils.getDoubleValue(in,"key", 0.0), 0); assertEquals(2.0, MapUtils.getDoubleValue(in,"key"), 0); assertEquals(1.0, MapUtils.getDoubleValue(in,"noKey", 1.0), 0); @@ -957,14 +957,14 @@ public class MapUtilsTest extends AbstractAvailableLocalesTest { assertEquals(2.0, MapUtils.getDouble(in,"key", 0.0), 0); assertEquals(1.0, MapUtils.getDouble(in,"noKey", 1.0), 0); - + final Map inStr = new HashMap<>(); char decimalSeparator = getDecimalSeparator(); inStr.put("str1", "2" + decimalSeparator + "0"); - + assertEquals(MapUtils.getDoubleValue(inStr,"str1", 0.0), 2.0, 0); } - + @Test public void testgetFloatValue() { final Map in = new HashMap<>(); @@ -976,34 +976,34 @@ public class MapUtilsTest extends AbstractAvailableLocalesTest { assertEquals(0, MapUtils.getFloatValue(in,"noKey"), 0); assertEquals(2.0, MapUtils.getFloat(in,"key", 0.0f), 0); assertEquals(1.0, MapUtils.getFloat(in,"noKey", 1.0f), 0); - + final Map inStr = new HashMap<>(); char decimalSeparator = getDecimalSeparator(); inStr.put("str1", "2" + decimalSeparator + "0"); - + assertEquals(MapUtils.getFloatValue(inStr,"str1", 0.0f), 2.0, 0); } - + @Test public void testgetLongValue() { final Map in = new HashMap<>(); in.put("key", 2L); - + assertEquals(2.0, MapUtils.getLongValue(in,"key", 0L), 0); assertEquals(2.0, MapUtils.getLongValue(in,"key"), 0); assertEquals(1, MapUtils.getLongValue(in,"noKey", 1L), 0); assertEquals(0, MapUtils.getLongValue(in,"noKey"), 0); assertEquals(2.0, MapUtils.getLong(in,"key", 0L), 0); assertEquals(1, MapUtils.getLong(in,"noKey", 1L), 0); - + final Map inStr = new HashMap<>(); inStr.put("str1", "2"); - + assertEquals(MapUtils.getLongValue(inStr,"str1", 0L), 2, 0); assertEquals(MapUtils.getLong(inStr, "str1", 1L), 2, 0); } - + @Test public void testgetIntValue() { final Map in = new HashMap<>(); @@ -1015,13 +1015,13 @@ public class MapUtilsTest extends AbstractAvailableLocalesTest { assertEquals(0, MapUtils.getIntValue(in,"noKey"), 0); assertEquals(2, MapUtils.getInteger(in,"key", 0), 0); assertEquals(0, MapUtils.getInteger(in,"noKey", 0), 0); - + final Map inStr = new HashMap<>(); inStr.put("str1", "2"); - + assertEquals(MapUtils.getIntValue(inStr,"str1", 0), 2, 0); } - + @Test public void testgetShortValue() { final Map in = new HashMap<>(); @@ -1040,13 +1040,13 @@ public class MapUtilsTest extends AbstractAvailableLocalesTest { assertEquals(MapUtils.getShortValue(inStr,"str1", val), val, 0); } - + @Test public void testgetByteValue() { final Map in = new HashMap<>(); final byte val = 100; in.put("key", val); - + assertEquals(val, MapUtils.getByteValue(in,"key", val), 0); assertEquals(val, MapUtils.getByteValue(in,"key"), 0); assertEquals(val, MapUtils.getByteValue(in,"noKey", val), 0); @@ -1054,55 +1054,55 @@ public class MapUtilsTest extends AbstractAvailableLocalesTest { assertEquals(val, MapUtils.getByte(in,"key", val), 0); assertEquals(val, MapUtils.getByte(in,"noKey", val), 0); - + final Map inStr = new HashMap<>(); inStr.put("str1", "100"); - + assertEquals(MapUtils.getByteValue(inStr,"str1", val), val, 0); } - + @Test public void testgetNumber() { final Map in = new HashMap<>(); final Number val = 1000; in.put("key", val); - + assertEquals(val.intValue(), MapUtils.getNumber(in,"key", val).intValue(), 0); assertEquals(val.intValue(), MapUtils.getNumber(in,"noKey", val).intValue(), 0); - + } - + @Test public void testgetString() { final Map in = new HashMap<>(); in.put("key", "str"); - + assertEquals("str", MapUtils.getString(in,"key", "defualt")); assertEquals("str", MapUtils.getString(in,"key")); assertEquals(null, MapUtils.getString(null,"key")); assertEquals("default", MapUtils.getString(in,"noKey", "default")); assertEquals("default", MapUtils.getString(null,"noKey", "default")); - + } - + @Test public void testgetObject() { final Map in = new HashMap<>(); in.put("key", "str"); - + assertEquals("str", MapUtils.getObject(in,"key", "defualt")); assertEquals("str", MapUtils.getObject(in,"key")); assertEquals(null, MapUtils.getObject(null,"key")); assertEquals("default", MapUtils.getObject(in,"noKey", "default")); assertEquals("default", MapUtils.getObject(null,"noKey", "default")); - + } - + @Test public void testgetBooleanValue() { final Map in = new HashMap<>(); in.put("key", true); - + assertTrue(MapUtils.getBooleanValue(in,"key", true)); assertTrue(MapUtils.getBooleanValue(in,"key")); assertTrue(MapUtils.getBooleanValue(in,"noKey", true)); @@ -1112,16 +1112,16 @@ public class MapUtilsTest extends AbstractAvailableLocalesTest { assertEquals(null, MapUtils.getBoolean(null,"noKey")); - + final Map inStr = new HashMap<>(); inStr.put("str1", "true"); - + assertTrue(MapUtils.getBooleanValue(inStr,"str1", true)); assertTrue(MapUtils.getBoolean(inStr,"str1", true)); } - + @Test public void testgetMap() { final Map> in = new HashMap<>(); @@ -1129,24 +1129,24 @@ public class MapUtilsTest extends AbstractAvailableLocalesTest { valMap.put("key1", "value1"); in.put("key1", valMap); final Map outValue = MapUtils.getMap(in,"key1", null); - + assertEquals("value1", outValue.get("key1")); assertEquals(null, outValue.get("key2")); assertEquals(null, MapUtils.getMap(in,"key2", null)); assertEquals(null, MapUtils.getMap(null,"key2", null)); } - + @Test public void testSafeAddToMap() { - + final Map inMap = new HashMap<>(); - + MapUtils.safeAddToMap(inMap,"key1", "value1"); MapUtils.safeAddToMap(inMap,"key2", null); assertEquals("value1", inMap.get("key1")); - assertEquals("", inMap.get("key2")); + assertEquals("", inMap.get("key2")); } - + @Test public void testOrderedMap() { final Map inMap = new HashMap<>(); diff --git a/src/test/java/org/apache/commons/collections4/MockTestCase.java b/src/test/java/org/apache/commons/collections4/MockTestCase.java index 40dc0c309..24fa70d87 100644 --- a/src/test/java/org/apache/commons/collections4/MockTestCase.java +++ b/src/test/java/org/apache/commons/collections4/MockTestCase.java @@ -5,9 +5,9 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/src/test/java/org/apache/commons/collections4/PredicateUtilsTest.java b/src/test/java/org/apache/commons/collections4/PredicateUtilsTest.java index a29048416..4110e9249 100644 --- a/src/test/java/org/apache/commons/collections4/PredicateUtilsTest.java +++ b/src/test/java/org/apache/commons/collections4/PredicateUtilsTest.java @@ -129,7 +129,7 @@ public class PredicateUtilsTest extends AbstractPredicateTest { assertEquals(false, PredicateUtils.notPredicate(TruePredicate.truePredicate()).evaluate(cInteger)); } - @Test(expected=NullPointerException.class) + @Test(expected=NullPointerException.class) public void testNotPredicateEx() { PredicateUtils.notPredicate(null); } @@ -145,7 +145,7 @@ public class PredicateUtilsTest extends AbstractPredicateTest { assertEquals(false, PredicateUtils.andPredicate(FalsePredicate.falsePredicate(), FalsePredicate.falsePredicate()).evaluate(null)); } - @Test(expected=NullPointerException.class) + @Test(expected=NullPointerException.class) public void testAndPredicateEx() { PredicateUtils.andPredicate(null, null); } @@ -195,24 +195,24 @@ public class PredicateUtilsTest extends AbstractPredicateTest { assertTrue(AllPredicate.allPredicate(coll), null); } - @Test(expected=NullPointerException.class) + @Test(expected=NullPointerException.class) public void testAllPredicateEx1() { AllPredicate.allPredicate((Predicate[]) null); } @SuppressWarnings("unchecked") - @Test(expected=NullPointerException.class) + @Test(expected=NullPointerException.class) public void testAllPredicateEx2() { AllPredicate.allPredicate(new Predicate[] { null }); } @SuppressWarnings("unchecked") - @Test(expected=NullPointerException.class) + @Test(expected=NullPointerException.class) public void testAllPredicateEx3() { AllPredicate.allPredicate(new Predicate[] { null, null }); } - @Test(expected=NullPointerException.class) + @Test(expected=NullPointerException.class) public void testAllPredicateEx4() { AllPredicate.allPredicate((Collection>) null); } @@ -222,7 +222,7 @@ public class PredicateUtilsTest extends AbstractPredicateTest { AllPredicate.allPredicate(Collections.>emptyList()); } - @Test(expected=NullPointerException.class) + @Test(expected=NullPointerException.class) public void testAllPredicateEx6() { final Collection> coll = new ArrayList<>(); coll.add(null); @@ -241,7 +241,7 @@ public class PredicateUtilsTest extends AbstractPredicateTest { assertEquals(false, PredicateUtils.orPredicate(FalsePredicate.falsePredicate(), FalsePredicate.falsePredicate()).evaluate(null)); } - @Test(expected=NullPointerException.class) + @Test(expected=NullPointerException.class) public void testOrPredicateEx() { PredicateUtils.orPredicate(null, null); } @@ -292,24 +292,24 @@ public class PredicateUtilsTest extends AbstractPredicateTest { assertFalse(PredicateUtils.anyPredicate(coll), null); } - @Test(expected=NullPointerException.class) + @Test(expected=NullPointerException.class) public void testAnyPredicateEx1() { PredicateUtils.anyPredicate((Predicate[]) null); } @SuppressWarnings("unchecked") - @Test(expected=NullPointerException.class) + @Test(expected=NullPointerException.class) public void testAnyPredicateEx2() { PredicateUtils.anyPredicate(new Predicate[] {null}); } @SuppressWarnings("unchecked") - @Test(expected=NullPointerException.class) + @Test(expected=NullPointerException.class) public void testAnyPredicateEx3() { PredicateUtils.anyPredicate(new Predicate[] {null, null}); } - @Test(expected=NullPointerException.class) + @Test(expected=NullPointerException.class) public void testAnyPredicateEx4() { PredicateUtils.anyPredicate((Collection>) null); } @@ -319,7 +319,7 @@ public class PredicateUtilsTest extends AbstractPredicateTest { PredicateUtils.anyPredicate(Collections.>emptyList()); } - @Test(expected=NullPointerException.class) + @Test(expected=NullPointerException.class) public void testAnyPredicateEx6() { final Collection> coll = new ArrayList<>(); coll.add(null); @@ -338,7 +338,7 @@ public class PredicateUtilsTest extends AbstractPredicateTest { assertEquals(false, PredicateUtils.eitherPredicate(FalsePredicate.falsePredicate(), FalsePredicate.falsePredicate()).evaluate(null)); } - @Test(expected=NullPointerException.class) + @Test(expected=NullPointerException.class) public void testEitherPredicateEx() { PredicateUtils.eitherPredicate(null, null); } @@ -392,7 +392,7 @@ public class PredicateUtilsTest extends AbstractPredicateTest { assertFalse(PredicateUtils.onePredicate(coll), null); } - @Test(expected=NullPointerException.class) + @Test(expected=NullPointerException.class) public void testOnePredicateEx1() { PredicateUtils.onePredicate((Predicate[]) null); } diff --git a/src/test/java/org/apache/commons/collections4/QueueUtilsTest.java b/src/test/java/org/apache/commons/collections4/QueueUtilsTest.java index e4a3fa030..970f9ce55 100644 --- a/src/test/java/org/apache/commons/collections4/QueueUtilsTest.java +++ b/src/test/java/org/apache/commons/collections4/QueueUtilsTest.java @@ -29,7 +29,7 @@ import org.junit.Test; /** * Tests for QueueUtils factory methods. - * + * */ public class QueueUtilsTest { @@ -48,7 +48,7 @@ public class QueueUtilsTest { } catch (final NullPointerException ex) { // expected } - + assertSame("UnmodifiableQueue shall not be decorated", queue, QueueUtils.unmodifiableQueue(queue)); } diff --git a/src/test/java/org/apache/commons/collections4/SetUtilsTest.java b/src/test/java/org/apache/commons/collections4/SetUtilsTest.java index bff420372..9dc08ef1c 100644 --- a/src/test/java/org/apache/commons/collections4/SetUtilsTest.java +++ b/src/test/java/org/apache/commons/collections4/SetUtilsTest.java @@ -131,12 +131,12 @@ public class SetUtilsTest { set.add(a); set.add(new String("b")); set.add(a); - + assertEquals(2, set.size()); - + set.add(new String("a")); assertEquals(3, set.size()); - + set.remove(a); assertEquals(2, set.size()); } diff --git a/src/test/java/org/apache/commons/collections4/TransformerUtilsTest.java b/src/test/java/org/apache/commons/collections4/TransformerUtilsTest.java index 2979d90b9..4b875b82e 100644 --- a/src/test/java/org/apache/commons/collections4/TransformerUtilsTest.java +++ b/src/test/java/org/apache/commons/collections4/TransformerUtilsTest.java @@ -256,7 +256,7 @@ public class TransformerUtilsTest { // if/else tests assertEquals("A", TransformerUtils.ifTransformer(lessThanFivePredicate, a, b).transform(1)); assertEquals("B", TransformerUtils.ifTransformer(lessThanFivePredicate, a, b).transform(5)); - + // if tests Predicate equalsAPredicate = EqualPredicate.equalPredicate("A"); assertEquals("C", TransformerUtils.ifTransformer(equalsAPredicate, c).transform("A")); @@ -279,7 +279,7 @@ public class TransformerUtilsTest { fail(); } catch (final NullPointerException ex) {} } - + // switchTransformer //------------------------------------------------------------------ diff --git a/src/test/java/org/apache/commons/collections4/TrieUtilsTest.java b/src/test/java/org/apache/commons/collections4/TrieUtilsTest.java index 21dd3354e..d2f31d15b 100644 --- a/src/test/java/org/apache/commons/collections4/TrieUtilsTest.java +++ b/src/test/java/org/apache/commons/collections4/TrieUtilsTest.java @@ -41,7 +41,7 @@ public class TrieUtilsTest { } catch (final NullPointerException ex) { // expected } - + assertSame("UnmodifiableTrie shall not be decorated", trie, TrieUtils.unmodifiableTrie(trie)); } diff --git a/src/test/java/org/apache/commons/collections4/bag/AbstractBagTest.java b/src/test/java/org/apache/commons/collections4/bag/AbstractBagTest.java index 87ec2c663..bf682cad7 100644 --- a/src/test/java/org/apache/commons/collections4/bag/AbstractBagTest.java +++ b/src/test/java/org/apache/commons/collections4/bag/AbstractBagTest.java @@ -54,7 +54,7 @@ import org.apache.commons.collections4.set.AbstractSetTest; *

* In addition to the generic collection tests (prefix testCollection) inherited * from AbstractCollectionTest, there are test methods that test the "normal" Bag - * interface (prefix testBag). For Bag specific tests use the {@link #makeObject()} and + * interface (prefix testBag). For Bag specific tests use the {@link #makeObject()} and * {@link #makeFullCollection()} methods instead of {@link #resetEmpty()} and resetFull(), * otherwise the collection will be wrapped by a {@link CollectionBag} decorator. * @@ -156,11 +156,11 @@ public abstract class AbstractBagTest extends AbstractCollectionTest { public void testBagEqualsSelf() { final Bag bag = makeObject(); assertTrue(bag.equals(bag)); - + if (!isAddSupported()) { return; } - + bag.add((T) "elt"); assertTrue(bag.equals(bag)); bag.add((T) "elt"); // again @@ -198,7 +198,7 @@ public abstract class AbstractBagTest extends AbstractCollectionTest { if (!isRemoveSupported()) { return; } - + final Bag bag = makeObject(); bag.add((T) "A", 2); assertEquals("Should have count of 2", 2, bag.getCount("A")); @@ -220,7 +220,7 @@ public abstract class AbstractBagTest extends AbstractCollectionTest { if (!isAddSupported()) { return; } - + final Bag bag = makeObject(); assertEquals("Bag does not have at least 1 'A'", false, bag.contains("A")); @@ -244,7 +244,7 @@ public abstract class AbstractBagTest extends AbstractCollectionTest { if (!isAddSupported()) { return; } - + final Bag bag = makeObject(); final List known = new ArrayList<>(); final List known1A = new ArrayList<>(); @@ -298,7 +298,7 @@ public abstract class AbstractBagTest extends AbstractCollectionTest { if (!isAddSupported()) { return; } - + final Bag bag = makeObject(); assertEquals("Should have 0 total items", 0, bag.size()); bag.add((T) "A"); @@ -323,7 +323,7 @@ public abstract class AbstractBagTest extends AbstractCollectionTest { if (!isAddSupported()) { return; } - + final Bag bag = makeObject(); bag.add((T) "A"); bag.add((T) "A"); diff --git a/src/test/java/org/apache/commons/collections4/bag/CollectionBagTest.java b/src/test/java/org/apache/commons/collections4/bag/CollectionBagTest.java index 77d3477a5..ef3ab4351 100644 --- a/src/test/java/org/apache/commons/collections4/bag/CollectionBagTest.java +++ b/src/test/java/org/apache/commons/collections4/bag/CollectionBagTest.java @@ -29,7 +29,7 @@ import org.apache.commons.collections4.collection.AbstractCollectionTest; * Test class for {@link CollectionBag}. *

* Note: This test is mainly for serialization support, the CollectionBag decorator - * is extensively used and tested in AbstractBagTest. + * is extensively used and tested in AbstractBagTest. * * @since 4.0 */ @@ -45,7 +45,7 @@ public class CollectionBagTest extends AbstractCollectionTest { } //----------------------------------------------------------------------- - + @Override public Bag makeObject() { return CollectionBag.collectionBag(new HashBag()); diff --git a/src/test/java/org/apache/commons/collections4/bag/CollectionSortedBagTest.java b/src/test/java/org/apache/commons/collections4/bag/CollectionSortedBagTest.java index 1922b386b..e189178a9 100644 --- a/src/test/java/org/apache/commons/collections4/bag/CollectionSortedBagTest.java +++ b/src/test/java/org/apache/commons/collections4/bag/CollectionSortedBagTest.java @@ -30,7 +30,7 @@ import org.apache.commons.collections4.collection.AbstractCollectionTest; * Test class for {@link CollectionSortedBag}. *

* Note: This test is mainly for serialization support, the CollectionSortedBag decorator - * is extensively used and tested in AbstractSortedBagTest. + * is extensively used and tested in AbstractSortedBagTest. * * @since 4.0 */ @@ -46,7 +46,7 @@ public class CollectionSortedBagTest extends AbstractCollectionTest { } //----------------------------------------------------------------------- - + /** * Overridden because SortedBags don't allow null elements (normally). * @return false diff --git a/src/test/java/org/apache/commons/collections4/bag/TreeBagTest.java b/src/test/java/org/apache/commons/collections4/bag/TreeBagTest.java index ad99c4453..593c53606 100644 --- a/src/test/java/org/apache/commons/collections4/bag/TreeBagTest.java +++ b/src/test/java/org/apache/commons/collections4/bag/TreeBagTest.java @@ -74,7 +74,7 @@ public class TreeBagTest extends AbstractSortedBagTest { } catch(final NullPointerException npe) { // expected; } - + final Bag bag2 = new TreeBag<>(new Comparator() { @Override public int compare(String o1, String o2) { diff --git a/src/test/java/org/apache/commons/collections4/bag/UnmodifiableBagTest.java b/src/test/java/org/apache/commons/collections4/bag/UnmodifiableBagTest.java index d9915c4c8..9c781b010 100644 --- a/src/test/java/org/apache/commons/collections4/bag/UnmodifiableBagTest.java +++ b/src/test/java/org/apache/commons/collections4/bag/UnmodifiableBagTest.java @@ -80,7 +80,7 @@ public class UnmodifiableBagTest extends AbstractBagTest { assertTrue(makeObject() instanceof Unmodifiable); assertTrue(makeFullCollection() instanceof Unmodifiable); } - + public void testDecorateFactory() { final Bag queue = makeFullCollection(); assertSame(queue, UnmodifiableBag.unmodifiableBag(queue)); diff --git a/src/test/java/org/apache/commons/collections4/bag/UnmodifiableSortedBagTest.java b/src/test/java/org/apache/commons/collections4/bag/UnmodifiableSortedBagTest.java index 93ffb8188..c481a1968 100644 --- a/src/test/java/org/apache/commons/collections4/bag/UnmodifiableSortedBagTest.java +++ b/src/test/java/org/apache/commons/collections4/bag/UnmodifiableSortedBagTest.java @@ -80,7 +80,7 @@ public class UnmodifiableSortedBagTest extends AbstractSortedBagTest { assertTrue(makeObject() instanceof Unmodifiable); assertTrue(makeFullCollection() instanceof Unmodifiable); } - + public void testDecorateFactory() { final SortedBag queue = makeFullCollection(); assertSame(queue, UnmodifiableSortedBag.unmodifiableSortedBag(queue)); diff --git a/src/test/java/org/apache/commons/collections4/bidimap/DualTreeBidiMap2Test.java b/src/test/java/org/apache/commons/collections4/bidimap/DualTreeBidiMap2Test.java index cc4f7aaa3..d4d8461cf 100644 --- a/src/test/java/org/apache/commons/collections4/bidimap/DualTreeBidiMap2Test.java +++ b/src/test/java/org/apache/commons/collections4/bidimap/DualTreeBidiMap2Test.java @@ -166,7 +166,7 @@ public class DualTreeBidiMap2Test, V extends Comparable< preTail + "bulkTestMapEntrySet.testCollectionIteratorRemove", preTail + "bulkTestMapEntrySet.testCollectionRemoveAll", preTail + "bulkTestMapKeySet.testCollectionIteratorRemove", - preTail + "bulkTestMapKeySet.testCollectionRemoveAll", + preTail + "bulkTestMapKeySet.testCollectionRemoveAll", preTail + "bulkTestMapValues.testCollectionClear", preTail + "bulkTestMapValues.testCollectionRemoveAll", preTail + "bulkTestMapValues.testCollectionRetainAll" diff --git a/src/test/java/org/apache/commons/collections4/bidimap/DualTreeBidiMapTest.java b/src/test/java/org/apache/commons/collections4/bidimap/DualTreeBidiMapTest.java index 51ddda868..ed56dda20 100644 --- a/src/test/java/org/apache/commons/collections4/bidimap/DualTreeBidiMapTest.java +++ b/src/test/java/org/apache/commons/collections4/bidimap/DualTreeBidiMapTest.java @@ -60,7 +60,7 @@ public class DualTreeBidiMapTest, V extends Comparable extends AbstractBidiMapTest { assertTrue(makeObject() instanceof Unmodifiable); assertTrue(makeFullMap() instanceof Unmodifiable); } - + public void testDecorateFactory() { final BidiMap map = makeFullMap(); assertSame(map, UnmodifiableBidiMap.unmodifiableBidiMap(map)); @@ -95,5 +95,5 @@ public class UnmodifiableBidiMapTest extends AbstractBidiMapTest { fail(); } catch (final NullPointerException ex) {} } - + } diff --git a/src/test/java/org/apache/commons/collections4/bidimap/UnmodifiableOrderedBidiMapTest.java b/src/test/java/org/apache/commons/collections4/bidimap/UnmodifiableOrderedBidiMapTest.java index 5966ffc07..92a2f3d7d 100644 --- a/src/test/java/org/apache/commons/collections4/bidimap/UnmodifiableOrderedBidiMapTest.java +++ b/src/test/java/org/apache/commons/collections4/bidimap/UnmodifiableOrderedBidiMapTest.java @@ -95,7 +95,7 @@ public class UnmodifiableOrderedBidiMapTest, V extends C assertTrue(makeObject() instanceof Unmodifiable); assertTrue(makeFullMap() instanceof Unmodifiable); } - + public void testDecorateFactory() { final OrderedBidiMap map = makeFullMap(); assertSame(map, UnmodifiableOrderedBidiMap.unmodifiableOrderedBidiMap(map)); diff --git a/src/test/java/org/apache/commons/collections4/bidimap/UnmodifiableSortedBidiMapTest.java b/src/test/java/org/apache/commons/collections4/bidimap/UnmodifiableSortedBidiMapTest.java index 4ece7005e..bb30ce99d 100644 --- a/src/test/java/org/apache/commons/collections4/bidimap/UnmodifiableSortedBidiMapTest.java +++ b/src/test/java/org/apache/commons/collections4/bidimap/UnmodifiableSortedBidiMapTest.java @@ -101,7 +101,7 @@ public class UnmodifiableSortedBidiMapTest, V extends Co assertTrue(makeObject() instanceof Unmodifiable); assertTrue(makeFullMap() instanceof Unmodifiable); } - + public void testDecorateFactory() { final SortedBidiMap map = makeFullMap(); assertSame(map, UnmodifiableSortedBidiMap.unmodifiableSortedBidiMap(map)); diff --git a/src/test/java/org/apache/commons/collections4/collection/AbstractCollectionTest.java b/src/test/java/org/apache/commons/collections4/collection/AbstractCollectionTest.java index 6960043fd..08a7eeeb2 100644 --- a/src/test/java/org/apache/commons/collections4/collection/AbstractCollectionTest.java +++ b/src/test/java/org/apache/commons/collections4/collection/AbstractCollectionTest.java @@ -90,7 +90,7 @@ import org.apache.commons.collections4.AbstractObjectTest; * {@link #confirmed}, the {@link #verify()} method is invoked to compare * the results. You may want to override {@link #verify()} to perform * additional verifications. For instance, when testing the collection - * views of a map, {@link org.apache.commons.collections4.map.AbstractMapTest AbstractTestMap} + * views of a map, {@link org.apache.commons.collections4.map.AbstractMapTest AbstractTestMap} * would override {@link #verify()} to make * sure the map is changed after the collection view is changed. *

@@ -106,7 +106,7 @@ import org.apache.commons.collections4.AbstractObjectTest; *

* If you're extending {@link org.apache.commons.collections4.list.AbstractListTest AbstractListTest}, * {@link org.apache.commons.collections4.set.AbstractSetTest AbstractTestSet}, - * or {@link org.apache.commons.collections4.bag.AbstractBagTest AbstractBagTest}, + * or {@link org.apache.commons.collections4.bag.AbstractBagTest AbstractBagTest}, * you probably don't have to worry about the * above methods, because those three classes already override the methods * to provide standard JDK confirmed collections.

diff --git a/src/test/java/org/apache/commons/collections4/collection/PredicatedCollectionBuilderTest.java b/src/test/java/org/apache/commons/collections4/collection/PredicatedCollectionBuilderTest.java index ab2f3385f..4159a605e 100644 --- a/src/test/java/org/apache/commons/collections4/collection/PredicatedCollectionBuilderTest.java +++ b/src/test/java/org/apache/commons/collections4/collection/PredicatedCollectionBuilderTest.java @@ -29,7 +29,7 @@ import org.junit.Test; /** * Tests the PredicatedCollection.Builder class. - * + * * @since 4.1 */ public class PredicatedCollectionBuilderTest { @@ -52,7 +52,7 @@ public class PredicatedCollectionBuilderTest { PredicatedCollection.Builder builder = PredicatedCollection.notNullBuilder(); builder.add((String) null); Assert.assertTrue(builder.createPredicatedList().isEmpty()); - + Assert.assertEquals(1, builder.rejectedElements().size()); } @@ -74,7 +74,7 @@ public class PredicatedCollectionBuilderTest { List predicatedList = builder.createPredicatedList(); checkPredicatedCollection1(predicatedList); - + Set predicatedSet = builder.createPredicatedSet(); checkPredicatedCollection1(predicatedSet); @@ -84,7 +84,7 @@ public class PredicatedCollectionBuilderTest { Queue predicatedQueue = builder.createPredicatedQueue(); checkPredicatedCollection1(predicatedQueue); } - + private void checkPredicatedCollection1(final Collection collection) { Assert.assertEquals(1, collection.size()); @@ -110,7 +110,7 @@ public class PredicatedCollectionBuilderTest { List predicatedList = builder.createPredicatedList(); checkPredicatedCollection2(predicatedList); - + Set predicatedSet = builder.createPredicatedSet(); checkPredicatedCollection2(predicatedSet); diff --git a/src/test/java/org/apache/commons/collections4/collection/PredicatedCollectionTest.java b/src/test/java/org/apache/commons/collections4/collection/PredicatedCollectionTest.java index ebd98d171..4635eb1e8 100644 --- a/src/test/java/org/apache/commons/collections4/collection/PredicatedCollectionTest.java +++ b/src/test/java/org/apache/commons/collections4/collection/PredicatedCollectionTest.java @@ -25,7 +25,7 @@ import org.apache.commons.collections4.Predicate; import org.apache.commons.collections4.functors.TruePredicate; /** - * Extension of {@link AbstractCollectionTest} for exercising the + * Extension of {@link AbstractCollectionTest} for exercising the * {@link PredicatedCollection} implementation. * * @since 3.0 diff --git a/src/test/java/org/apache/commons/collections4/collection/UnmodifiableBoundedCollectionTest.java b/src/test/java/org/apache/commons/collections4/collection/UnmodifiableBoundedCollectionTest.java index 85cccb23b..11cb110ef 100644 --- a/src/test/java/org/apache/commons/collections4/collection/UnmodifiableBoundedCollectionTest.java +++ b/src/test/java/org/apache/commons/collections4/collection/UnmodifiableBoundedCollectionTest.java @@ -27,7 +27,7 @@ import org.apache.commons.collections4.list.FixedSizeList; /** * Extension of {@link AbstractCollectionTest} for exercising the * {@link UnmodifiableBoundedCollection} implementation. - * + * */ public class UnmodifiableBoundedCollectionTest extends AbstractCollectionTest { @@ -80,14 +80,14 @@ public class UnmodifiableBoundedCollectionTest extends AbstractCollectionTest public String getCompatibilityVersion() { return "4"; } - + //----------------------------------------------------------------------- public void testUnmodifiable() { assertTrue(makeObject() instanceof Unmodifiable); assertTrue(makeFullCollection() instanceof Unmodifiable); } - + public void testDecorateFactory() { final BoundedCollection coll = makeFullCollection(); assertSame(coll, UnmodifiableBoundedCollection.unmodifiableBoundedCollection(coll)); @@ -97,5 +97,5 @@ public class UnmodifiableBoundedCollectionTest extends AbstractCollectionTest fail(); } catch (final NullPointerException ex) {} } - + } diff --git a/src/test/java/org/apache/commons/collections4/collection/UnmodifiableCollectionTest.java b/src/test/java/org/apache/commons/collections4/collection/UnmodifiableCollectionTest.java index b41669480..d8c86009b 100644 --- a/src/test/java/org/apache/commons/collections4/collection/UnmodifiableCollectionTest.java +++ b/src/test/java/org/apache/commons/collections4/collection/UnmodifiableCollectionTest.java @@ -71,12 +71,12 @@ public class UnmodifiableCollectionTest extends AbstractCollectionTest { } //----------------------------------------------------------------------- - + public void testUnmodifiable() { assertTrue(makeObject() instanceof Unmodifiable); assertTrue(makeFullCollection() instanceof Unmodifiable); } - + public void testDecorateFactory() { final Collection coll = makeFullCollection(); assertSame(coll, UnmodifiableCollection.unmodifiableCollection(coll)); diff --git a/src/test/java/org/apache/commons/collections4/functors/AbstractAnyAllOnePredicateTest.java b/src/test/java/org/apache/commons/collections4/functors/AbstractAnyAllOnePredicateTest.java index fdec974b8..12cceb203 100644 --- a/src/test/java/org/apache/commons/collections4/functors/AbstractAnyAllOnePredicateTest.java +++ b/src/test/java/org/apache/commons/collections4/functors/AbstractAnyAllOnePredicateTest.java @@ -69,7 +69,7 @@ public abstract class AbstractAnyAllOnePredicateTest extends AbstractComposit /** * Tests creating composite predicate instances with single predicates and verifies that the composite returns - * the same value as the single predicate does. + * the same value as the single predicate does. */ @SuppressWarnings("boxing") public final void singleValues() { diff --git a/src/test/java/org/apache/commons/collections4/iterators/FilterIteratorTest.java b/src/test/java/org/apache/commons/collections4/iterators/FilterIteratorTest.java index e67ccd183..bc2c755c4 100644 --- a/src/test/java/org/apache/commons/collections4/iterators/FilterIteratorTest.java +++ b/src/test/java/org/apache/commons/collections4/iterators/FilterIteratorTest.java @@ -74,7 +74,7 @@ public class FilterIteratorTest extends AbstractIteratorTest { /** * Returns an array with elements wrapped in a pass-through * FilterIterator - * + * * @return a filtered iterator */ @Override diff --git a/src/test/java/org/apache/commons/collections4/iterators/IteratorEnumerationTest.java b/src/test/java/org/apache/commons/collections4/iterators/IteratorEnumerationTest.java index 1f6005256..7c244638f 100644 --- a/src/test/java/org/apache/commons/collections4/iterators/IteratorEnumerationTest.java +++ b/src/test/java/org/apache/commons/collections4/iterators/IteratorEnumerationTest.java @@ -25,16 +25,16 @@ import junit.framework.TestCase; /** * Tests the IteratorEnumeration. - * + * */ public class IteratorEnumerationTest extends TestCase { - + public void testEnumeration() { Iterator iterator = Arrays.asList("a", "b", "c").iterator(); IteratorEnumeration enumeration = new IteratorEnumeration<>(iterator); - + assertEquals(iterator, enumeration.getIterator()); - + assertTrue(enumeration.hasMoreElements()); assertEquals("a", enumeration.nextElement()); assertEquals("b", enumeration.nextElement()); diff --git a/src/test/java/org/apache/commons/collections4/iterators/ListIteratorWrapper2Test.java b/src/test/java/org/apache/commons/collections4/iterators/ListIteratorWrapper2Test.java index 4c1e6ab6b..b5cfbd278 100644 --- a/src/test/java/org/apache/commons/collections4/iterators/ListIteratorWrapper2Test.java +++ b/src/test/java/org/apache/commons/collections4/iterators/ListIteratorWrapper2Test.java @@ -135,7 +135,7 @@ public class ListIteratorWrapper2Test extends AbstractIteratorTest { //like we never started iterating: assertEquals(-1, iter.previousIndex()); assertEquals(0, iter.nextIndex()); - + try { iter.remove(); fail("ListIteratorWrapper#remove() should fail; must be repositioned first"); diff --git a/src/test/java/org/apache/commons/collections4/iterators/ListIteratorWrapperTest.java b/src/test/java/org/apache/commons/collections4/iterators/ListIteratorWrapperTest.java index af38e381c..a1a19603a 100644 --- a/src/test/java/org/apache/commons/collections4/iterators/ListIteratorWrapperTest.java +++ b/src/test/java/org/apache/commons/collections4/iterators/ListIteratorWrapperTest.java @@ -136,7 +136,7 @@ public class ListIteratorWrapperTest extends AbstractIteratorTest { //like we never started iterating: assertEquals(-1, iter.previousIndex()); assertEquals(0, iter.nextIndex()); - + try { iter.remove(); fail("ListIteratorWrapper#remove() should fail; must be repositioned first"); diff --git a/src/test/java/org/apache/commons/collections4/iterators/PeekingIteratorTest.java b/src/test/java/org/apache/commons/collections4/iterators/PeekingIteratorTest.java index c3191b31a..85a5f15c3 100644 --- a/src/test/java/org/apache/commons/collections4/iterators/PeekingIteratorTest.java +++ b/src/test/java/org/apache/commons/collections4/iterators/PeekingIteratorTest.java @@ -36,7 +36,7 @@ public class PeekingIteratorTest extends AbstractIteratorTest { private final String[] testArray = { "a", "b", "c" }; private List testList; - + public PeekingIteratorTest(final String testName) { super(testName); } @@ -67,7 +67,7 @@ public class PeekingIteratorTest extends AbstractIteratorTest { } //----------------------------------------------------------------------- - + @Test public void testEmpty() { Iterator it = makeEmptyIterator(); @@ -99,7 +99,7 @@ public class PeekingIteratorTest extends AbstractIteratorTest { assertEquals("c", it.next()); assertFalse(it.hasNext()); } - + @Test public void testIteratorExhausted() { PeekingIterator it = makeObject(); @@ -108,7 +108,7 @@ public class PeekingIteratorTest extends AbstractIteratorTest { it.next(); assertFalse(it.hasNext()); assertNull(it.peek()); - + try { it.element(); fail(); @@ -122,10 +122,10 @@ public class PeekingIteratorTest extends AbstractIteratorTest { PeekingIterator it = makeObject(); it.next(); it.remove(); // supported - + assertTrue(it.hasNext()); assertEquals("b", it.peek()); - + try { it.remove(); fail(); diff --git a/src/test/java/org/apache/commons/collections4/iterators/PushbackIteratorTest.java b/src/test/java/org/apache/commons/collections4/iterators/PushbackIteratorTest.java index 6561704c8..590fecf1e 100644 --- a/src/test/java/org/apache/commons/collections4/iterators/PushbackIteratorTest.java +++ b/src/test/java/org/apache/commons/collections4/iterators/PushbackIteratorTest.java @@ -27,7 +27,7 @@ import org.junit.Test; /** * Tests the PushbackIterator. - * + * */ public class PushbackIteratorTest extends AbstractIteratorTest { diff --git a/src/test/java/org/apache/commons/collections4/iterators/UniqueFilterIteratorTest.java b/src/test/java/org/apache/commons/collections4/iterators/UniqueFilterIteratorTest.java index 427a5f89c..bf8078bde 100644 --- a/src/test/java/org/apache/commons/collections4/iterators/UniqueFilterIteratorTest.java +++ b/src/test/java/org/apache/commons/collections4/iterators/UniqueFilterIteratorTest.java @@ -78,7 +78,7 @@ public class UniqueFilterIteratorTest extends AbstractIteratorTest { try { iter.next(); } catch (final Exception e) { - assertTrue("NoSuchElementException must be thrown", + assertTrue("NoSuchElementException must be thrown", e.getClass().equals(new NoSuchElementException().getClass())); } } diff --git a/src/test/java/org/apache/commons/collections4/keyvalue/MultiKeyTest.java b/src/test/java/org/apache/commons/collections4/keyvalue/MultiKeyTest.java index 500b837c9..49159bd37 100644 --- a/src/test/java/org/apache/commons/collections4/keyvalue/MultiKeyTest.java +++ b/src/test/java/org/apache/commons/collections4/keyvalue/MultiKeyTest.java @@ -253,7 +253,7 @@ public class MultiKeyTest extends TestCase { final MultiKey mk2 = new MultiKey(ONE, sysKey); assertEquals(TWO, map2.get(mk2)); } - + static class DerivedMultiKey extends MultiKey { private static final long serialVersionUID = 1928896152249821416L; @@ -290,5 +290,5 @@ public class MultiKeyTest extends TestCase { assertEquals(mk.hashCode(), mk2.hashCode()); } - + } diff --git a/src/test/java/org/apache/commons/collections4/list/GrowthListTest.java b/src/test/java/org/apache/commons/collections4/list/GrowthListTest.java index 893597b33..9d3f6f970 100644 --- a/src/test/java/org/apache/commons/collections4/list/GrowthListTest.java +++ b/src/test/java/org/apache/commons/collections4/list/GrowthListTest.java @@ -149,7 +149,7 @@ public class GrowthListTest extends AbstractListTest { fail("List.set should throw IndexOutOfBoundsException [-1]"); } catch(final IndexOutOfBoundsException e) { // expected - } + } } //----------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/collections4/list/PredicatedListTest.java b/src/test/java/org/apache/commons/collections4/list/PredicatedListTest.java index 4cfc3bdf7..1e831ba47 100644 --- a/src/test/java/org/apache/commons/collections4/list/PredicatedListTest.java +++ b/src/test/java/org/apache/commons/collections4/list/PredicatedListTest.java @@ -23,7 +23,7 @@ import org.apache.commons.collections4.Predicate; import org.apache.commons.collections4.functors.TruePredicate; /** - * Extension of {@link AbstractListTest} for exercising the + * Extension of {@link AbstractListTest} for exercising the * {@link PredicatedList} implementation. * * @since 3.0 diff --git a/src/test/java/org/apache/commons/collections4/map/CaseInsensitiveMapTest.java b/src/test/java/org/apache/commons/collections4/map/CaseInsensitiveMapTest.java index a43f107d1..fa397b948 100644 --- a/src/test/java/org/apache/commons/collections4/map/CaseInsensitiveMapTest.java +++ b/src/test/java/org/apache/commons/collections4/map/CaseInsensitiveMapTest.java @@ -120,7 +120,7 @@ public class CaseInsensitiveMapTest extends AbstractIterableMapTest final Locale[] locales = { Locale.ENGLISH, new Locale("tr", "", ""), Locale.getDefault() }; - final String[][] data = { + final String[][] data = { { "i", "I" }, { "\u03C2", "\u03C3" }, { "\u03A3", "\u03C2" }, diff --git a/src/test/java/org/apache/commons/collections4/map/DefaultedMapTest.java b/src/test/java/org/apache/commons/collections4/map/DefaultedMapTest.java index 0c9210903..a6953d353 100644 --- a/src/test/java/org/apache/commons/collections4/map/DefaultedMapTest.java +++ b/src/test/java/org/apache/commons/collections4/map/DefaultedMapTest.java @@ -26,7 +26,7 @@ import org.apache.commons.collections4.Transformer; import org.apache.commons.collections4.functors.ConstantFactory; /** - * Extension of {@link AbstractMapTest} for exercising the + * Extension of {@link AbstractMapTest} for exercising the * {@link DefaultedMap} implementation. * * @since 3.2 diff --git a/src/test/java/org/apache/commons/collections4/map/Flat3MapTest.java b/src/test/java/org/apache/commons/collections4/map/Flat3MapTest.java index a619d9448..e3a52947a 100644 --- a/src/test/java/org/apache/commons/collections4/map/Flat3MapTest.java +++ b/src/test/java/org/apache/commons/collections4/map/Flat3MapTest.java @@ -412,15 +412,15 @@ public class Flat3MapTest extends AbstractIterableMapTest { final Flat3Map m = new Flat3Map<>(); m.put( Integer.valueOf(1), Integer.valueOf(1) ); m.put( Integer.valueOf(0), Integer.valueOf(0) ); - assertEquals( Integer.valueOf(1), m.remove( Integer.valueOf(1) ) ); - assertEquals( Integer.valueOf(0), m.remove( Integer.valueOf(0) ) ); + assertEquals( Integer.valueOf(1), m.remove( Integer.valueOf(1) ) ); + assertEquals( Integer.valueOf(0), m.remove( Integer.valueOf(0) ) ); m.put( Integer.valueOf(2), Integer.valueOf(2) ); m.put( Integer.valueOf(1), Integer.valueOf(1) ); m.put( Integer.valueOf(0), Integer.valueOf(0) ); - assertEquals( Integer.valueOf(2), m.remove( Integer.valueOf(2) ) ); - assertEquals( Integer.valueOf(1), m.remove( Integer.valueOf(1) ) ); - assertEquals( Integer.valueOf(0), m.remove( Integer.valueOf(0) ) ); + assertEquals( Integer.valueOf(2), m.remove( Integer.valueOf(2) ) ); + assertEquals( Integer.valueOf(1), m.remove( Integer.valueOf(1) ) ); + assertEquals( Integer.valueOf(0), m.remove( Integer.valueOf(0) ) ); } public void testToString() { diff --git a/src/test/java/org/apache/commons/collections4/map/LRUMapTest.java b/src/test/java/org/apache/commons/collections4/map/LRUMapTest.java index fb6ee9939..49b365a07 100644 --- a/src/test/java/org/apache/commons/collections4/map/LRUMapTest.java +++ b/src/test/java/org/apache/commons/collections4/map/LRUMapTest.java @@ -281,7 +281,7 @@ public class LRUMapTest extends AbstractOrderedMapTest { resetEmpty(); LRUMap lruMap = (LRUMap) map; - + lruMap.put(keys[0], values[0]); lruMap.put(keys[1], values[1]); kit = lruMap.keySet().iterator(); diff --git a/src/test/java/org/apache/commons/collections4/map/LazyMapTest.java b/src/test/java/org/apache/commons/collections4/map/LazyMapTest.java index caa7f9a20..c86698ed5 100644 --- a/src/test/java/org/apache/commons/collections4/map/LazyMapTest.java +++ b/src/test/java/org/apache/commons/collections4/map/LazyMapTest.java @@ -27,7 +27,7 @@ import org.apache.commons.collections4.Transformer; import org.junit.Test; /** - * Extension of {@link AbstractMapTest} for exercising the + * Extension of {@link AbstractMapTest} for exercising the * {@link LazyMap} implementation. * * @since 3.0 diff --git a/src/test/java/org/apache/commons/collections4/map/MultiKeyMapTest.java b/src/test/java/org/apache/commons/collections4/map/MultiKeyMapTest.java index 527c11a05..0cd1c5aff 100644 --- a/src/test/java/org/apache/commons/collections4/map/MultiKeyMapTest.java +++ b/src/test/java/org/apache/commons/collections4/map/MultiKeyMapTest.java @@ -308,7 +308,7 @@ public class MultiKeyMapTest extends AbstractIterableMapTest extends AbstractObjectTest { byte[] bytes = serialize(map1); Object result = deserialize(bytes); assertEquals(map1, result); - + MultiValueMap map2 = MultiValueMap.multiValueMap(new HashMap(), (Class) String.class); bytes = serialize(map2); try { @@ -416,16 +416,16 @@ public class MultiValueMapTest extends AbstractObjectTest { return baos.toByteArray(); } - + private Object deserialize(byte[] data) throws IOException, ClassNotFoundException { ByteArrayInputStream bais = new ByteArrayInputStream(data); ObjectInputStream iis = new ObjectInputStream(bais); - + return iis.readObject(); } //----------------------------------------------------------------------- - // Manual serialization testing as this class cannot easily + // Manual serialization testing as this class cannot easily // extend the AbstractTestMap //----------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/collections4/map/PassiveExpiringMapTest.java b/src/test/java/org/apache/commons/collections4/map/PassiveExpiringMapTest.java index c633cecc0..789d2947a 100644 --- a/src/test/java/org/apache/commons/collections4/map/PassiveExpiringMapTest.java +++ b/src/test/java/org/apache/commons/collections4/map/PassiveExpiringMapTest.java @@ -224,7 +224,7 @@ public class PassiveExpiringMapTest extends AbstractMapTest { m.put("a", "b"); assertNull(m.get("a")); } - + public void testExpiration() { validateExpiration(new PassiveExpiringMap(500), 500); validateExpiration(new PassiveExpiringMap(1000), 1000); @@ -236,9 +236,9 @@ public class PassiveExpiringMapTest extends AbstractMapTest { private void validateExpiration(final Map map, long timeout) { map.put("a", "b"); - + assertNotNull(map.get("a")); - + try { Thread.sleep(2 * timeout); } catch (InterruptedException e) { @@ -247,5 +247,5 @@ public class PassiveExpiringMapTest extends AbstractMapTest { assertNull(map.get("a")); } - + } diff --git a/src/test/java/org/apache/commons/collections4/map/PredicatedMapTest.java b/src/test/java/org/apache/commons/collections4/map/PredicatedMapTest.java index b928bdbe1..1bd66b671 100644 --- a/src/test/java/org/apache/commons/collections4/map/PredicatedMapTest.java +++ b/src/test/java/org/apache/commons/collections4/map/PredicatedMapTest.java @@ -25,7 +25,7 @@ import org.apache.commons.collections4.Predicate; import org.apache.commons.collections4.functors.TruePredicate; /** - * Extension of {@link AbstractMapTest} for exercising the + * Extension of {@link AbstractMapTest} for exercising the * {@link PredicatedMap} implementation. * * @since 3.0 diff --git a/src/test/java/org/apache/commons/collections4/map/TransformedSortedMapTest.java b/src/test/java/org/apache/commons/collections4/map/TransformedSortedMapTest.java index 202dc0a7b..bf7ba53c8 100644 --- a/src/test/java/org/apache/commons/collections4/map/TransformedSortedMapTest.java +++ b/src/test/java/org/apache/commons/collections4/map/TransformedSortedMapTest.java @@ -57,7 +57,7 @@ public class TransformedSortedMapTest extends AbstractSortedMapTest preTailMap + "bulkTestMapEntrySet.testCollectionIteratorRemove", preTailMap + "bulkTestMapEntrySet.testCollectionRemoveAll", preTailMap + "bulkTestMapKeySet.testCollectionIteratorRemove", - preTailMap + "bulkTestMapKeySet.testCollectionRemoveAll", + preTailMap + "bulkTestMapKeySet.testCollectionRemoveAll", preTailMap + "bulkTestMapValues.testCollectionClear", preTailMap + "bulkTestMapValues.testCollectionRemoveAll", preTailMap + "bulkTestMapValues.testCollectionRetainAll" diff --git a/src/test/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMapTest.java b/src/test/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMapTest.java index 4fb0a3807..46905a841 100644 --- a/src/test/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMapTest.java +++ b/src/test/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMapTest.java @@ -1135,7 +1135,7 @@ public abstract class AbstractMultiValuedMapTest extends AbstractObjectTes public boolean isRemoveSupported() { return AbstractMultiValuedMapTest.this.isRemoveSupported(); } - + @Override public boolean areEqualElementsDistinguishable() { // work-around for a problem with the EntrySet: the entries contain diff --git a/src/test/java/org/apache/commons/collections4/multimap/TransformedMultiValuedMapTest.java b/src/test/java/org/apache/commons/collections4/multimap/TransformedMultiValuedMapTest.java index 5f160871d..55ee3a281 100644 --- a/src/test/java/org/apache/commons/collections4/multimap/TransformedMultiValuedMapTest.java +++ b/src/test/java/org/apache/commons/collections4/multimap/TransformedMultiValuedMapTest.java @@ -28,7 +28,7 @@ import org.apache.commons.collections4.collection.TransformedCollectionTest; /** * Tests for TransformedMultiValuedMap - * + * * @since 4.1 */ public class TransformedMultiValuedMapTest extends AbstractMultiValuedMapTest { diff --git a/src/test/java/org/apache/commons/collections4/multimap/UnmodifiableMultiValuedMapTest.java b/src/test/java/org/apache/commons/collections4/multimap/UnmodifiableMultiValuedMapTest.java index 5851ce04f..9818e1228 100644 --- a/src/test/java/org/apache/commons/collections4/multimap/UnmodifiableMultiValuedMapTest.java +++ b/src/test/java/org/apache/commons/collections4/multimap/UnmodifiableMultiValuedMapTest.java @@ -33,7 +33,7 @@ import org.apache.commons.collections4.Unmodifiable; /** * Tests for UnmodifiableMultiValuedMap - * + * * @since 4.1 */ public class UnmodifiableMultiValuedMapTest extends AbstractMultiValuedMapTest { @@ -45,7 +45,7 @@ public class UnmodifiableMultiValuedMapTest extends AbstractMultiValuedMap public static Test suite() { return BulkTest.makeSuite(UnmodifiableMultiValuedMapTest.class); } - + // ----------------------------------------------------------------------- @Override public boolean isAddSupported() { diff --git a/src/test/java/org/apache/commons/collections4/multiset/AbstractMultiSetTest.java b/src/test/java/org/apache/commons/collections4/multiset/AbstractMultiSetTest.java index 5775634f7..579aff287 100644 --- a/src/test/java/org/apache/commons/collections4/multiset/AbstractMultiSetTest.java +++ b/src/test/java/org/apache/commons/collections4/multiset/AbstractMultiSetTest.java @@ -50,7 +50,7 @@ import org.apache.commons.collections4.set.AbstractSetTest; *

* In addition to the generic collection tests (prefix testCollection) inherited * from AbstractCollectionTest, there are test methods that test the "normal" MultiSet - * interface (prefix testMultiSet). For MultiSet specific tests use the {@link #makeObject()} and + * interface (prefix testMultiSet). For MultiSet specific tests use the {@link #makeObject()} and * {@link #makeFullCollection()} methods instead of {@link #resetEmpty()} and resetFull(). * * @since 4.1 @@ -152,11 +152,11 @@ public abstract class AbstractMultiSetTest extends AbstractCollectionTest public void testMultiSetEqualsSelf() { final MultiSet multiset = makeObject(); assertTrue(multiset.equals(multiset)); - + if (!isAddSupported()) { return; } - + multiset.add((T) "elt"); assertTrue(multiset.equals(multiset)); multiset.add((T) "elt"); // again @@ -194,7 +194,7 @@ public abstract class AbstractMultiSetTest extends AbstractCollectionTest if (!isRemoveSupported()) { return; } - + final MultiSet multiset = makeObject(); multiset.add((T) "A", 2); assertEquals("Should have count of 2", 2, multiset.getCount("A")); @@ -216,7 +216,7 @@ public abstract class AbstractMultiSetTest extends AbstractCollectionTest if (!isAddSupported()) { return; } - + final MultiSet multiset = makeObject(); assertEquals("MultiSet does not have at least 1 'A'", false, multiset.contains("A")); @@ -240,7 +240,7 @@ public abstract class AbstractMultiSetTest extends AbstractCollectionTest if (!isAddSupported()) { return; } - + final MultiSet multiset = makeObject(); final List known = new ArrayList<>(); final List known1A = new ArrayList<>(); @@ -294,7 +294,7 @@ public abstract class AbstractMultiSetTest extends AbstractCollectionTest if (!isAddSupported()) { return; } - + final MultiSet multiset = makeObject(); assertEquals("Should have 0 total items", 0, multiset.size()); multiset.add((T) "A"); @@ -319,7 +319,7 @@ public abstract class AbstractMultiSetTest extends AbstractCollectionTest if (!isAddSupported()) { return; } - + final MultiSet multiset = makeObject(); multiset.add((T) "A"); multiset.add((T) "A"); diff --git a/src/test/java/org/apache/commons/collections4/multiset/UnmodifiableMultiSetTest.java b/src/test/java/org/apache/commons/collections4/multiset/UnmodifiableMultiSetTest.java index 1b221f9ef..c433c93d7 100644 --- a/src/test/java/org/apache/commons/collections4/multiset/UnmodifiableMultiSetTest.java +++ b/src/test/java/org/apache/commons/collections4/multiset/UnmodifiableMultiSetTest.java @@ -79,7 +79,7 @@ public class UnmodifiableMultiSetTest extends AbstractMultiSetTest { assertTrue(makeObject() instanceof Unmodifiable); assertTrue(makeFullCollection() instanceof Unmodifiable); } - + public void testDecorateFactory() { final MultiSet multiset = makeFullCollection(); assertSame(multiset, UnmodifiableMultiSet.unmodifiableMultiSet(multiset)); diff --git a/src/test/java/org/apache/commons/collections4/queue/AbstractQueueTest.java b/src/test/java/org/apache/commons/collections4/queue/AbstractQueueTest.java index 3d49d612e..7ae0e7b33 100644 --- a/src/test/java/org/apache/commons/collections4/queue/AbstractQueueTest.java +++ b/src/test/java/org/apache/commons/collections4/queue/AbstractQueueTest.java @@ -162,13 +162,13 @@ public abstract class AbstractQueueTest extends AbstractCollectionTest { assertTrue("Queue should contain added element", getCollection().contains(element)); } } - + /** * Tests {@link Queue#element()}. */ public void testQueueElement() { resetEmpty(); - + try { getCollection().element(); fail("Queue.element should throw NoSuchElementException"); @@ -193,13 +193,13 @@ public abstract class AbstractQueueTest extends AbstractCollectionTest { } assertTrue(getConfirmed().contains(element)); - + getCollection().remove(element); getConfirmed().remove(element); verify(); } - + try { getCollection().element(); fail("Queue.element should throw NoSuchElementException"); @@ -217,7 +217,7 @@ public abstract class AbstractQueueTest extends AbstractCollectionTest { } resetEmpty(); - + E element = getCollection().peek(); assertNull(element); @@ -232,13 +232,13 @@ public abstract class AbstractQueueTest extends AbstractCollectionTest { } assertTrue(getConfirmed().contains(element)); - + getCollection().remove(element); getConfirmed().remove(element); verify(); } - + element = getCollection().peek(); assertNull(element); } @@ -252,7 +252,7 @@ public abstract class AbstractQueueTest extends AbstractCollectionTest { } resetEmpty(); - + try { getCollection().remove(); fail("Queue.remove should throw NoSuchElementException"); @@ -269,7 +269,7 @@ public abstract class AbstractQueueTest extends AbstractCollectionTest { assertTrue("remove should return correct element", success); verify(); } - + try { getCollection().element(); fail("Queue.remove should throw NoSuchElementException"); @@ -287,7 +287,7 @@ public abstract class AbstractQueueTest extends AbstractCollectionTest { } resetEmpty(); - + E element = getCollection().poll(); assertNull(element); @@ -300,7 +300,7 @@ public abstract class AbstractQueueTest extends AbstractCollectionTest { assertTrue("poll should return correct element", success); verify(); } - + element = getCollection().poll(); assertNull(element); } diff --git a/src/test/java/org/apache/commons/collections4/queue/UnmodifiableQueueTest.java b/src/test/java/org/apache/commons/collections4/queue/UnmodifiableQueueTest.java index bdd4e1001..e35fc3762 100644 --- a/src/test/java/org/apache/commons/collections4/queue/UnmodifiableQueueTest.java +++ b/src/test/java/org/apache/commons/collections4/queue/UnmodifiableQueueTest.java @@ -95,7 +95,7 @@ public class UnmodifiableQueueTest extends AbstractQueueTest { assertTrue(makeObject() instanceof Unmodifiable); assertTrue(makeFullCollection() instanceof Unmodifiable); } - + public void testDecorateFactory() { final Queue queue = makeFullCollection(); assertSame(queue, UnmodifiableQueue.unmodifiableQueue(queue)); diff --git a/src/test/java/org/apache/commons/collections4/set/ListOrderedSetTest.java b/src/test/java/org/apache/commons/collections4/set/ListOrderedSetTest.java index 6ad312611..d5547d9fc 100644 --- a/src/test/java/org/apache/commons/collections4/set/ListOrderedSetTest.java +++ b/src/test/java/org/apache/commons/collections4/set/ListOrderedSetTest.java @@ -28,7 +28,7 @@ import org.apache.commons.collections4.IteratorUtils; /** * Extension of {@link AbstractSetTest} for exercising the * {@link ListOrderedSet} implementation. - * + * * @since 3.0 */ public class ListOrderedSetTest diff --git a/src/test/java/org/apache/commons/collections4/set/PredicatedSetTest.java b/src/test/java/org/apache/commons/collections4/set/PredicatedSetTest.java index 5bc7d42d2..834fc3802 100644 --- a/src/test/java/org/apache/commons/collections4/set/PredicatedSetTest.java +++ b/src/test/java/org/apache/commons/collections4/set/PredicatedSetTest.java @@ -23,7 +23,7 @@ import org.apache.commons.collections4.Predicate; import org.apache.commons.collections4.functors.TruePredicate; /** - * Extension of {@link AbstractSetTest} for exercising the + * Extension of {@link AbstractSetTest} for exercising the * {@link PredicatedSet} implementation. * * @since 3.0 diff --git a/src/test/java/org/apache/commons/collections4/set/UnmodifiableSetTest.java b/src/test/java/org/apache/commons/collections4/set/UnmodifiableSetTest.java index 536968db7..795124a58 100644 --- a/src/test/java/org/apache/commons/collections4/set/UnmodifiableSetTest.java +++ b/src/test/java/org/apache/commons/collections4/set/UnmodifiableSetTest.java @@ -70,7 +70,7 @@ public class UnmodifiableSetTest extends AbstractSetTest { assertTrue(makeObject() instanceof Unmodifiable); assertTrue(makeFullCollection() instanceof Unmodifiable); } - + public void testDecorateFactory() { final Set set = makeFullCollection(); assertSame(set, UnmodifiableSet.unmodifiableSet(set)); diff --git a/src/test/java/org/apache/commons/collections4/trie/PatriciaTrieTest.java b/src/test/java/org/apache/commons/collections4/trie/PatriciaTrieTest.java index 88919a372..cbe8023fb 100755 --- a/src/test/java/org/apache/commons/collections4/trie/PatriciaTrieTest.java +++ b/src/test/java/org/apache/commons/collections4/trie/PatriciaTrieTest.java @@ -443,5 +443,5 @@ public class PatriciaTrieTest extends AbstractSortedMapTest { // writeExternalFormToDisk( // (java.io.Serializable) map, // "src/test/resources/data/test/PatriciaTrie.fullCollection.version4.obj"); -// } +// } }