public abstract class AbstractROCollectionTest<T> extends Object
ReadOnlyCollections.| Constructor and Description |
|---|
AbstractROCollectionTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
containsFirstIteratorResult()
Contains the element that comes first when you iterate over that
collection.
|
protected abstract ReadOnlyCollection<T> |
implInstance()
Creates an instance of a class to test.
|
void |
interatorSizeMatchesCollectionSize()
Iterator has the same number of elements that the collection itself.
|
void |
mayBeNotEmpty()
May be not empty.
|
void |
mayHaveSizeGreaterThanZero()
May have size greater than 0.
|
void |
streamAccessesSameElementsAsIterator()
Stream made from this collection is over the same elements as an Iterator
made from this collection.
|
public final void mayBeNotEmpty()
public final void mayHaveSizeGreaterThanZero()
public final void containsFirstIteratorResult()
public final void streamAccessesSameElementsAsIterator()
public final void interatorSizeMatchesCollectionSize()
protected abstract ReadOnlyCollection<T> implInstance()
Copyright © 2012–2015 jcabi.com. All rights reserved.