Class BreakableIterableTest

  • Constructor Details

    • BreakableIterableTest

      public BreakableIterableTest()
  • Method Details

    • provider

      @NotNull public @NotNull CollectionProvider<Integer,BreakableIterable<Integer>> provider()
      Specified by:
      provider in interface CollectionProviderSupport<Integer,BreakableIterable<Integer>>
      Specified by:
      provider in interface ProviderSupport<BreakableIterable<Integer>>
    • testForEachWithDoesNotCallActionBreak

      @Test @DisplayName("Test the `forEach` method with the FOR_EACH_DOES_NOT_CALL_ACTION break") public void testForEachWithDoesNotCallActionBreak()
      Test that the FOR_EACH_DOES_NOT_CALL_ACTION break causes the iterable to never call the action.
      See Also:
    • testForEachWithSkipsFirstElementBreak

      @Test @DisplayName("Test the `forEach` method with the FOR_EACH_SKIPS_FIRST_ELEMENT break") public void testForEachWithSkipsFirstElementBreak()
      Test that the FOR_EACH_SKIPS_FIRST_ELEMENT break causes the forEach method to skip the first element.
      See Also:
    • testForEachWithSkipsLastElementBreak

      @Test @DisplayName("Test the `forEach` method with the FOR_EACH_SKIPS_LAST_ELEMENT break") public void testForEachWithSkipsLastElementBreak()
      Test that the FOR_EACH_SKIPS_LAST_ELEMENT break causes the forEach method to skip the last element.
      See Also:
    • testForEachWithThrowsWrongExceptionBreak

      @Test @DisplayName("Test the `forEach` method with the FOR_EACH_THROWS_WRONG_EXCEPTION_FOR_NULL_ARGUMENT break") public void testForEachWithThrowsWrongExceptionBreak()
      Test that the FOR_EACH_THROWS_WRONG_EXCEPTION_FOR_NULL_ARGUMENT break causes the forEach method to throw the wrong exception when the argument is null.
      See Also:
    • testBuilderAddElements

      @Test public void testBuilderAddElements()
    • testBuilderSetCharacteristics

      @ParameterizedTest @ValueSource(ints={16,1,4,64,16384,256,1024,4096}) public void testBuilderSetCharacteristics(int characteristics)
    • testBuilderCopy

      @Test public void testBuilderCopy()
    • testIteratorRemoveWithoutSupport

      @Test public void testIteratorRemoveWithoutSupport()
    • testIteratorForEachRemainingWithoutSupport

      @Test public void testIteratorForEachRemainingWithoutSupport()