Uses of Record Class
org.soliscode.test.breakable.Break
Packages that use Break
Package
Description
Support for "breakable" objects that can be used to test contract classes.
-
Uses of Break in org.soliscode.test.breakable
Fields in org.soliscode.test.breakable declared as BreakModifier and TypeFieldDescriptionstatic final Break
BreakableCollection.ADD_ALL_ALWAYS_RETURNS_FALSE
The addAll method always return a result offalse
, even if the element is added.static final Break
BreakableCollection.ADD_ALL_ALWAYS_RETURNS_OPPOSITE_VALUE
The addAll method always returns the opposite of the appropriate result.static final Break
BreakableCollection.ADD_ALL_ALWAYS_RETURNS_TRUE
The addAll method always return a result oftrue
, even if the element is not added.static final Break
BreakableList.ADD_ALL_AT_INDEX_ADDS_TO_THE_END
The addAll method adds to the end of the collection.static final Break
BreakableList.ADD_ALL_AT_INDEX_ALWAYS_RETURNS_FALSE
The addAll method always return a result offalse
, even if the element is added.static final Break
BreakableList.ADD_ALL_AT_INDEX_ALWAYS_RETURNS_OPPOSITE_VALUE
The addAll method always returns the opposite of the appropriate result.static final Break
BreakableList.ADD_ALL_AT_INDEX_ALWAYS_RETURNS_TRUE
The addAll method always return a result oftrue
, even if the element is not added.static final Break
BreakableList.ADD_ALL_AT_INDEX_DOES_NOT_ADD_ANY_ELEMENTS
The addAll method will not add any elements to the collectionstatic final Break
BreakableList.ADD_ALL_AT_INDEX_THROWS_WRONG_EXCEPTION_IF_NOT_SUPPORTED
The addAll method method throws the wrong exception if it is not supported.static final Break
BreakableList.ADD_ALL_AT_INDEX_THROWS_WRONG_EXCEPTION_ON_BAD_INDEX
The addAll method method throws the wrong exception when the index is out of bounds.static final Break
The addAll method method throws the wrong exception if the argument is null.static final Break
BreakableCollection.ADD_ALL_DOES_NOT_ADD_ANY_ELEMENTS
The addAll method will not add any elements to the collectionstatic final Break
BreakableCollection.ADD_ALL_SKIPS_FIRST_ELEMENT
The addAll method skips the first element to be added.static final Break
BreakableCollection.ADD_ALL_SKIPS_LAST_ELEMENT
The addAll method skips the last element to be added.static final Break
BreakableCollection.ADD_ALWAYS_RETURNS_FALSE
The add method always return a result offalse
, even if the element is added.static final Break
BreakableCollection.ADD_ALWAYS_RETURNS_OPPOSITE_VALUE
The add method always returns the opposite of the appropriate result.static final Break
BreakableCollection.ADD_ALWAYS_RETURNS_TRUE
The add method always return a result oftrue
, even if the element is not added.static final Break
BreakableList.ADD_AT_INDEX_ADDS_AT_NEXT_POSITION
The add method adds the element at the next position.static final Break
BreakableList.ADD_AT_INDEX_ADDS_AT_PREVIOUS_POSITION
The add method adds the element at the previous position.static final Break
BreakableList.ADD_AT_INDEX_DOES_NOT_ADD_THE_ELEMENT
The add method will not add an element to the collectionstatic final Break
BreakableList.ADD_AT_INDEX_THROWS_WRONG_EXCEPTION_ON_BAD_INDEX
The add method throws the wrong exception when the index is out of bounds.static final Break
BreakableCollection.ADD_DOES_NOT_ADD_ELEMENT
The add method does not add an element to the collectionstatic final Break
BreakableSequencedCollection.ADD_FIRST_ADDS_TO_END
The addFirst method adds the element to the end of the collection.static final Break
BreakableSequencedCollection.ADD_FIRST_DOES_NOT_ADD_ELEMENT
The addFirst method does not add an element.static final Break
BreakableSequencedCollection.ADD_LAST_ADDS_TO_FRONT
The addLast method adds the element to the front of the collection.static final Break
BreakableSequencedCollection.ADD_LAST_DOES_NOT_ADD_ELEMENT
The addLast method does not add an element.static final Break
BreakableCollection.CLEAR_DOES_NOT_REMOVE_ANY_ELEMENTS
The clear method doers not remove any elements,static final Break
BreakableCollection.CLEAR_SKIPS_FIRST_ELEMENT
The clear method skips the first element,static final Break
BreakableCollection.CLEAR_SKIPS_LAST_ELEMENT
The clear method skips the last element,static final Break
BreakableCollection.CONTAINS_ALL_ALWAYS_RETURNS_FALSE
ThecontainsAll
method will always return a false.static final Break
BreakableCollection.CONTAINS_ALL_ALWAYS_RETURNS_TRUE
ThecontainsAll
method will always return a true.static final Break
BreakableCollection.CONTAINS_ALL_RETURNS_OPPOSITE_VALUE
ThecontainsAll
method will return the opposite value.static final Break
BreakableCollection.CONTAINS_ALWAYS_RETURNS_FALSE
Thecontains
method will always return a false.static final Break
BreakableCollection.CONTAINS_ALWAYS_RETURNS_TRUE
Thecontains
method will always return a true.static final Break
BreakableCollection.CONTAINS_RETURNS_OPPOSITE_VALUE
Thecontains
method will return the opposite value.static final Break
BreakableIterable.FOR_EACH_DOES_NOT_CALL_ACTION
The methodforEach
does not call the action on any of the elements.static final Break
BreakableIterable.FOR_EACH_SKIPS_FIRST_ELEMENT
TheforEach
method does not call the action on the first element.static final Break
BreakableIterable.FOR_EACH_SKIPS_LAST_ELEMENT
The methodforEach
does not call the action on the last element.static final Break
BreakableIterable.FOR_EACH_THROWS_WRONG_EXCEPTION_FOR_NULL_ARGUMENT
The methodforEach
throws the wrong exception when passes anull
action argument.static final Break
BreakableList.GET_ALWAYS_RETURNS_NULL
The get method always returnsnull
static final Break
BreakableList.GET_ALWAYS_RETURNS_THE_FIRST_ELEMENT
The get method always returns the first element.static final Break
BreakableList.GET_ALWAYS_RETURNS_THE_LAST_ELEMENT
The get method always returns the last element.static final Break
BreakableSequencedCollection.GET_FIRST_ALWAYS_THROWS
ThegetFirst
method always throws aNoSuchElementException
static final Break
BreakableSequencedCollection.GET_FIRST_RETURNS_NULL
ThegetFirst
method returns anull
value.static final Break
BreakableSequencedCollection.GET_FIRST_SKIPS_FIRST_ELEMENT
ThegetFirst
method returns the second element.static final Break
BreakableSequencedCollection.GET_LAST_ALWAYS_THROWS
ThegetLast
method always throws aNoSuchElementException
static final Break
BreakableSequencedCollection.GET_LAST_RETURNS_NULL
ThegetLast
method returns anull
value.static final Break
BreakableSequencedCollection.GET_LAST_SKIPS_LAST_ELEMENT
ThegetLast
method returns the second element.static final Break
BreakableList.GET_RETURNS_NULL_ON_BAD_INDEX
The get method returnsnull
on a bad index instead of throwing en exception.static final Break
BreakableList.GET_RETURNS_THE_NEXT_ELEMENT
The get method returns the next element (i.e. at index + 1).static final Break
BreakableList.GET_RETURNS_THE_PREVIOUS_ELEMENT
The get method returns the previous element (i.e. at index - 1).static final Break
BreakableList.GET_THROWS_WRONG_EXCEPTION_ON_BAD_INDEX
The get method throws the wrong exception on a bad index.static final Break
BreakableCollection.IS_EMPTY_ALWAYS_RETURNS_FALSE
TheisEmpty
method will always return a false.static final Break
BreakableCollection.IS_EMPTY_ALWAYS_RETURNS_TRUE
TheisEmpty
method will always return a true.static final Break
BreakableCollection.IS_EMPTY_RETURNS_OPPOSITE_VALUE
TheisEmpty
method will return the opposite value.static final Break
BreakableIterator.ITERATOR_FOR_EACH_REMAINING_DOES_NOT_CALL_ACTION
The iterator 'forEachRemaining' does not call the actionstatic final Break
BreakableIterator.ITERATOR_FOR_EACH_REMAINING_THROWS_WRONG_EXCEPTION_FOR_NULL_ARGUMENT
The iterator 'forEachRemaining' throws the wrong exception for anull
argument.static final Break
BreakableIterator.ITERATOR_HAS_NEXT_ALWAYS_RETURNS_FALSE
The iteratorhasNext
method will always return a false.static final Break
BreakableIterator.ITERATOR_HAS_NEXT_ALWAYS_RETURNS_TRUE
The iteratorhasNext
method will always return a true.static final Break
BreakableIterator.ITERATOR_HAS_NEXT_RETURNS_OPPOSITE_VALUE
The iteratorhasNext
method will always return the opposite valuestatic final Break
BreakableIterator.ITERATOR_IS_ALWAYS_EMPTY
The iterator will always have no elementsstatic final Break
BreakableIterator.ITERATOR_NEXT_ALWAYS_RETURNS_NULL
The iteratornext
method will always returnnull
static final Break
BreakableIterator.ITERATOR_NEXT_THROWS_WRONG_EXCEPTION
The iteratornext
method will always returnnull
static final Break
BreakableIterator.ITERATOR_REMOVE_DOES_NOT_REMOVE_ELEMENT
The iterator 'remove' method does not remove the element at the current iterator position.static final Break
BreakableIterator.ITERATOR_REMOVE_THROWS_WRONG_EXCEPTION_FOR_ILLEGAL_STATE
The iterator 'remove' method throws the wrong exception for an illegal statestatic final Break
BreakableIterator.ITERATOR_REMOVE_THROWS_WRONG_EXCEPTION_IF_NOT_SUPPORTED
The iterator 'remove' method throws the wrong exception nif it is not supported.static final Break
BreakableIterator.ITERATOR_SKIPS_FIRST_ELEMENT
The iterator will skip the first element.static final Break
BreakableCollection.REMOVE_ALL_ALWAYS_RETURNS_FALSE
The removeAll method always return a result offalse
, even any of the elements are removed.static final Break
BreakableCollection.REMOVE_ALL_ALWAYS_RETURNS_OPPOSITE_VALUE
The removeAll method always returns the opposite of the appropriate result.static final Break
BreakableCollection.REMOVE_ALL_ALWAYS_RETURNS_TRUE
The removeAll method always return a result oftrue
, even if the element is not removed.static final Break
BreakableCollection.REMOVE_ALL_DOES_NOT_REMOVE_ANY_ELEMENTS
The removeAll method will not remove any elements to the collectionstatic final Break
BreakableCollection.REMOVE_ALL_SKIPS_FIRST_ELEMENT
The removeAll method skips the first element to be removed.static final Break
BreakableCollection.REMOVE_ALL_SKIPS_LAST_ELEMENT
The removeAll method skips the last element to be removed.static final Break
BreakableCollection.REMOVE_ALWAYS_RETURNS_FALSE
Theremove
method always return a result offalse
, even if the element is removed.static final Break
BreakableCollection.REMOVE_ALWAYS_RETURNS_OPPOSITE_VALUE
Theremove
method always returns the opposite of the appropriate result.static final Break
BreakableCollection.REMOVE_ALWAYS_RETURNS_TRUE
Theremove
method always return a result oftrue
, even if the element is not removed.static final Break
BreakableList.REMOVE_AT_INDEX_ALWAYS_RETURNS_NULL
The remove method always returnsnull
static final Break
BreakableList.REMOVE_AT_INDEX_DOES_NOT_REMOVE_THE_ELEMENT
The remove method does not remove the element.static final Break
BreakableList.REMOVE_AT_INDEX_REMOVES_THE_NEXT_ELEMENT
The remove method removes the next element.static final Break
BreakableList.REMOVE_AT_INDEX_REMOVES_THE_PREVIOUS_ELEMENT
The remove method removes the previous elementstatic final Break
BreakableList.REMOVE_AT_INDEX_RETURNS_NULL_ON_BAD_INDEX
The remove method returnsnull
when the index is out of bounds.static final Break
BreakableList.REMOVE_AT_INDEX_THROWS_WRONG_EXCEPTION_ON_BAD_INDEX
The remove method throws the wrong exception when the index is out of bounds.static final Break
BreakableCollection.REMOVE_DOES_NOT_REMOVE_ELEMENT
Theremove
method will not remove an element to the collectionstatic final Break
BreakableSequencedCollection.REMOVE_FIRST_ALWAYS_THROWS
The removeFirst method always throws aNoSuchElement
exception.static final Break
BreakableSequencedCollection.REMOVE_FIRST_DOES_NOT_REMOVE_ELEMENT
The removeFirst method does not remove the first element.static final Break
BreakableSequencedCollection.REMOVE_FIRST_RETURNS_NULL
The removeFirst method returnsnull
static final Break
BreakableCollection.REMOVE_IF_ALWAYS_RETURNS_FALSE
The removeIf method always return a result offalse
, even any of the elements are removed.static final Break
BreakableCollection.REMOVE_IF_ALWAYS_RETURNS_OPPOSITE_VALUE
The removeIf method always returns the opposite of the appropriate result.static final Break
BreakableCollection.REMOVE_IF_ALWAYS_RETURNS_TRUE
The removeIf method always return a result oftrue
, even if the element is not removed.static final Break
BreakableCollection.REMOVE_IF_DOES_NOT_REMOVE_ANY_ELEMENTS
The removeIf method will not remove any elements to the collectionstatic final Break
BreakableCollection.REMOVE_IF_SKIPS_FIRST_ELEMENT
The removeIf method skips the first element to be removed.static final Break
BreakableCollection.REMOVE_IF_SKIPS_LAST_ELEMENT
The removeIf method skips the last element to be removed.static final Break
BreakableSequencedCollection.REMOVE_LAST_ALWAYS_THROWS
The removeLast method always throws aNoSuchElement
exception.static final Break
BreakableSequencedCollection.REMOVE_LAST_DOES_NOT_REMOVE_ELEMENT
The removeLast method does not remove the last element.static final Break
BreakableSequencedCollection.REMOVE_LAST_RETURNS_NULL
The removeLast method returnsnull
static final Break
BreakableList.REPLACE_ALL_DOES_NOT_REPLACE_ELEMENTS
The replaceAll method does not replace any elementsstatic final Break
BreakableList.REPLACE_ALL_SKIPS_FIRST_ELEMENT
The replaceAll method skips the first element.static final Break
BreakableList.REPLACE_ALL_SKIPS_LAST_ELEMENT
The replaceAll method skips the last elementstatic final Break
BreakableCollection.RETAIN_ALL_ALWAYS_RETURNS_FALSE
The retainAll method always return a result offalse
, even the collection is modifiedstatic final Break
BreakableCollection.RETAIN_ALL_ALWAYS_RETURNS_OPPOSITE_VALUE
The retainAll method always returns the opposite of the appropriate result.static final Break
BreakableCollection.RETAIN_ALL_ALWAYS_RETURNS_TRUE
The retainAll method always return a result oftrue
, even if the collection is not modified.static final Break
BreakableCollection.RETAIN_ALL_DOES_NOT_RETAIN_ANY_ELEMENTS
The retainAll method will not retain any elements to the collectionstatic final Break
BreakableCollection.RETAIN_ALL_SKIPS_FIRST_ELEMENT
The retainAll method skips the first element to be retained.static final Break
BreakableCollection.RETAIN_ALL_SKIPS_LAST_ELEMENT
The retainAll method skips the last element to be retained.static final Break
BreakableSequencedCollection.REVERSED_DOES_NOT_REVERSE_COLLECTION
The reversed method does not reverse the collection.static final Break
BreakableSequencedCollection.REVERSED_MODIFIES_THE_COLLECTION
The reversed method modifies the collection.static final Break
BreakableList.SET_ALWAYS_RETURNS_NULL
The set method always returnsnull
static final Break
BreakableList.SET_CHANGES_THE_NEXT_ELEMENT
The set method changes the next element (i.e. at index + 1).static final Break
BreakableList.SET_CHANGES_THE_PREVIOUS_ELEMENT
The set method changes the previous element (i.e. at index - 1).static final Break
BreakableList.SET_DOES_NOT_CHANGE_THE_ELEMENT
The set method does not change the element.static final Break
BreakableList.SET_RETURNS_NULL_ON_BAD_INDEX
The set method returnsnull
on a bad index instead of throwing en exception.static final Break
BreakableList.SET_THROWS_WRONG_EXCEPTION_ON_BAD_INDEX
The set method throws the wrong exception on a bad index.static final Break
BreakableCollection.SIZE_ALWAYS_RETURNS_CONSTANT_VALUE
Thesize
method will always return a constant value.static final Break
BreakableCollection.SIZE_ALWAYS_RETURNS_ZERO
Thesize
method will always return zero.static final Break
BreakableList.SORT_DOES_NOT_SORT_THE_ELEMENTS
The sort method does not sort the elements.static final Break
BreakableList.SORT_REVERSES_THE_ORDER
The sort method sorts the elements in the reverse order.static final Break
BreakableList.SORT_THROWS_ON_NULL_ARGUMENT
static final Break
BreakableSpliterator.SPLITERATOR_CHARACTERISTICS_ALWAYS_RETURNS_ZERO
Thecharacteristics
method always returns zero (0).static final Break
BreakableSpliterator.SPLITERATOR_ESTIMATE_SIZE_ALWAYS_RETURNS_MAX_VALUE
TheestimateSize
method always returns the max value.static final Break
BreakableSpliterator.SPLITERATOR_ESTIMATE_SIZE_ALWAYS_RETURNS_ZERO
TheestimateSize
method always returns zero.static final Break
BreakableSpliterator.SPLITERATOR_FOR_EACH_REMAINING_DOES_NOT_CALL_ACTION
The 'forEachRemaining' method on the spliterator does not call the action.static final Break
BreakableSpliterator.SPLITERATOR_GET_COMPARATOR_ALWAYS_RETURNS_NULL
ThegetComparator
method always returnnull
.static final Break
BreakableSpliterator.SPLITERATOR_GET_EXACT_SIZE_IF_KNOWN_ALWAYS_RETURNS_NEGATIVE_ONE
ThegetExactSizeIfKnown
method always returns negative one (-1).static final Break
BreakableSpliterator.SPLITERATOR_HAS_CHARACTERISTIC_ALWAYS_RETURNS_FALSE
ThehasCharacteristics
method always returnsfalse
.static final Break
BreakableSpliterator.SPLITERATOR_HAS_CHARACTERISTIC_ALWAYS_RETURNS_TRUE
ThehasCharacteristics
method always returnstrue
.static final Break
BreakableSpliterator.SPLITERATOR_IS_ALWAYS_EMPTY
The spliterator always has no elements.static final Break
BreakableSpliterator.SPLITERATOR_SKIPS_FIRST_ELEMENT
The spliterator that skips the first element.static final Break
BreakableSpliterator.SPLITERATOR_TRY_ADVANCE_ALWAYS_RETURNS_FALSE
The 'tryAdvance' method always returns false.static final Break
BreakableSpliterator.SPLITERATOR_TRY_ADVANCE_ALWAYS_RETURNS_TRUE
The 'tryAdvance' method always returns true.static final Break
BreakableSpliterator.SPLITERATOR_TRY_ADVANCE_DOES_NOT_CALL_ACTION
The 'tryAdvance' method on the spliterator does not call the action.static final Break
BreakableSpliterator.SPLITERATOR_TRY_SPLIT_ALWAYS_RETURNS_NULL
The 'trySplit' method on the spliterator always returnsnull
.static final Break
BreakableCollection.TO_ARRAY_MISSING_FIRST_ELEMENT
The 'toArray' method will always return an array missing the first elementstatic final Break
BreakableCollection.TO_ARRAY_MISSING_LAST_ELEMENT
The 'toArray' method will always return an array missing the last elementstatic final Break
BreakableCollection.TO_ARRAY_RETURNS_EMPTY_ARRAY
The 'toArray' method will always return an empty arraystatic final Break
BreakableCollection.TO_ARRAY_RETURNS_NULL
The 'toArray' method will always returnnull
static final Break
BreakableCollection.TO_ARRAY_STORE_DOES_NOT_COPY_ELEMENTS
The 'toArray([])' method does not copy the elements into the arraystatic final Break
BreakableCollection.TO_ARRAY_STORE_MISSING_FIRST_ELEMENT
The 'toArray' method will always return an array missing the first elementstatic final Break
BreakableCollection.TO_ARRAY_STORE_MISSING_LAST_ELEMENT
The 'toArray' method will always return an array missing the last elementstatic final Break
BreakableCollection.TO_ARRAY_STORE_RETURNS_EMPTY_ARRAY
The 'toArray' method will always return an empty arraystatic final Break
BreakableCollection.TO_ARRAY_STORE_RETURNS_NULL
The 'toArray' method will always returnnull
Fields in org.soliscode.test.breakable with type parameters of type BreakMethods in org.soliscode.test.breakable that return types with arguments of type BreakModifier and TypeMethodDescriptionAbstractBreakable.breaks()
Breakable.breaks()
Returns all of the breaks that have been added to this object.Methods in org.soliscode.test.breakable with parameters of type BreakModifier and TypeMethodDescriptionfinal B
boolean
boolean
Determines if this instance has a specified break.Method parameters in org.soliscode.test.breakable with type arguments of type BreakModifier and TypeMethodDescriptionvoid
AbstractBreakable.addBreaks
(@NotNull Collection<Break> breaks) void
Breakable.addBreaks
(@NotNull Collection<Break> breaks) Adds a set of breaks to this object.static <E> @NotNull CollectionProvider
<E, BreakableCollection<E>> BreakableCollection.collectionProvider
(@NotNull ObjectProvider<E> elementProvider, @NotNull Set<Break> breaks) Creates a collection provider for instances ofBreakableCollection
, given an element provider and a set of breaks.static <E> @NotNull CollectionProvider
<E, BreakableIterable<E>> BreakableIterable.iterableProvider
(@NotNull ObjectProvider<E> elementProvider, @NotNull Set<Break> breaks) Constructor parameters in org.soliscode.test.breakable with type arguments of type BreakModifierConstructorDescriptionAbstractBreakable
(@NotNull Collection<Break> breaks) Create a breakable object with a specified set of breaks.BreakableIterable
(@NotNull Iterable<E> i, @NotNull Collection<Break> breaks, int characteristics) Creates a breakable iterable from another iterable with a set of breaks and characteristics specified by the other arguments.BreakableIterable
(@NotNull Set<Break> breaks) Creates a breakable iterable with a set of breaksBreakableIterator
(Iterator<E> iterator, Collection<Break> breaks, int characteristics) Constructs a breakable iterator from a iterator that will provide the implementation.BreakableList
(@NotNull List<E> c, @NotNull Collection<Break> breaks, int characteristics) Creates aBreakableSequencedCollection
from en existing collection and specifying the breaks and collection characteristics.BreakableSequencedCollection
(@NotNull List<E> c, @NotNull Collection<Break> breaks, int characteristics) Creates aBreakableSequencedCollection
from en existing collection and specifying the breaks and collection characteristics.BreakableSpliterator
(Spliterator<E> iterator, Collection<Break> breaks, int characteristics) Constructs a breakable spliterator from a spliterator that will provide the implementation.