Class ListSetTester<E>

All Implemented Interfaces:
junit.framework.Test

@GwtCompatible(emulated=true) public class ListSetTester<E> extends AbstractListTester<E>
A generic JUnit test which tests set() operations on a list. Can't be invoked directly; please see ListTestSuiteBuilder.
Author:
George van den Driessche
  • Constructor Details

    • ListSetTester

      public ListSetTester()
  • Method Details

    • testSet

      public void testSet()
    • testSet_null

      public void testSet_null()
    • testSet_replacingNull

      public void testSet_replacingNull()
    • testSet_indexTooLow

      public void testSet_indexTooLow()
    • testSet_indexTooHigh

      public void testSet_indexTooHigh()
    • testSet_unsupported

      public void testSet_unsupported()
    • testSet_unsupportedByEmptyList

      public void testSet_unsupportedByEmptyList()
    • testSet_nullUnsupported

      public void testSet_nullUnsupported()
    • getSetNullSupportedMethod

      @GwtIncompatible public static Method getSetNullSupportedMethod()
      Returns the Method instance for testSet_null() so that tests of Collections.checkedCollection(java.util.Collection, Class) can suppress it with FeatureSpecificTestSuiteBuilder.suppressing() until JDK-6409434 is fixed. It's unclear whether nulls were to be permitted or forbidden, but presumably the eventual fix will be to permit them, as it seems more likely that code would depend on that behavior than on the other. Thus, we say the bug is in set(), which fails to support null.