diff --git a/src/test/java/org/apache/commons/collections4/queue/TAbstractQueueDecoratorTest.java b/src/test/java/org/apache/commons/collections4/queue/TAbstractQueueDecoratorTest.java index d332e1d35a..a0ee29d263 100644 --- a/src/test/java/org/apache/commons/collections4/queue/TAbstractQueueDecoratorTest.java +++ b/src/test/java/org/apache/commons/collections4/queue/TAbstractQueueDecoratorTest.java @@ -16,25 +16,29 @@ */ package org.apache.commons.collections4.queue; -import junit.framework.Test; -import org.apache.commons.collections4.BulkTest; import org.apache.commons.collections4.collection.AbstractCollectionTest; - -import java.util.*; - - -public class AbstractQueueDecoratorTest extends AbstractCollectionTest { +import java.util.ArrayList; +import java.util.Arrays; +import java.util.LinkedList; +import java.util.Collection; +import java.util.Queue; +import java.util.NoSuchElementException; + +/** + * Test cases for AbstractQueueDecorator. + * + * @since 4.5 + */ +public class TAbstractQueueDecoratorTest extends AbstractCollectionTest { /** * JUnit constructor. * * @param testName the test class name */ - public AbstractQueueDecoratorTest(String testName) { + public TAbstractQueueDecoratorTest(String testName) { super(testName); } - public static Test suite() { - return BulkTest.makeSuite(AbstractQueueDecoratorTest.class); - } + @Override public Collection makeConfirmedCollection() { final ArrayList list = new ArrayList<>(); @@ -72,15 +76,12 @@ public Queue getCollection() { } /** - * Tests {@link Queue#offer(Object)}. + * Tests {@link AbstractQueueDecorator#offer(Object)}. */ public void testAbstractQueueDecoratorOffer() { if (!isAddSupported()) { return; } - - System.out.println("zhaopengliangdddddddddddddddddddddddd"); - System.exit(1); final E[] elements = getFullElements(); for (final E element : elements) { resetEmpty(); @@ -106,7 +107,7 @@ public void testAbstractQueueDecoratorOffer() { } /** - * Tests {@link Queue#poll()}. + * Tests {@link AbstractQueueDecorator#poll()}. */ public void testAbstractQueueDecoratorPoll() { if (!isRemoveSupported()) { @@ -133,7 +134,7 @@ public void testAbstractQueueDecoratorPoll() { } /** - * Tests {@link Queue#peek()}. + * Tests {@link AbstractQueueDecorator#peek()}. */ public void testAbstractQueueDecoratorPeek() { if (!isRemoveSupported()) { @@ -168,7 +169,7 @@ public void testAbstractQueueDecoratorPeek() { } /** - * Tests {@link Queue#remove()}. + * Tests {@link AbstractQueueDecorator#remove()}. */ public void testAbstractQueueDecoratorRemove() { if (!isRemoveSupported()) {