Class CollectionCreationTester<E>

All Implemented Interfaces:
junit.framework.Test

@GwtCompatible(emulated=true) public class CollectionCreationTester<E> extends AbstractCollectionTester<E>
A generic JUnit test which tests creation (typically through a constructor or static factory method) of a collection. Can't be invoked directly; please see CollectionTestSuiteBuilder.
Author:
Chris Povirk
  • Constructor Details

    • CollectionCreationTester

      public CollectionCreationTester()
  • Method Details

    • testCreateWithNull_supported

      public void testCreateWithNull_supported()
    • testCreateWithNull_unsupported

      public void testCreateWithNull_unsupported()
    • getCreateWithNullUnsupportedMethod

      @GwtIncompatible public static Method getCreateWithNullUnsupportedMethod()
      Returns the Method instance for testCreateWithNull_unsupported() so that tests can suppress it with FeatureSpecificTestSuiteBuilder.suppressing() until JDK-5045147 is fixed.