Lines Matching refs:elements
27 * and {@link java.util.Map Map}) that contain elements.
84 * @param elements expected contents of {@link #container}
86 protected final void expectContents(E... elements) {
87 expectContents(Arrays.asList(elements));
91 * Asserts that the collection under test contains exactly the given elements,
117 * Asserts that the collection under test contains exactly the elements it was
118 * initialized with plus the given elements, according to
122 * created, and the number of occurrences of all other elements has not
136 * @param elements expected additional contents of {@link #container}
138 protected final void expectAdded(E... elements) {
140 expected.addAll(Arrays.asList(elements));
144 protected final void expectAdded(int index, E... elements) {
145 expectAdded(index, Arrays.asList(elements));
148 protected final void expectAdded(int index, Collection<E> elements) {
150 expected.addAll(index, elements);
157 * extends AbstractListTester.) We could also iterate over all elements to
160 protected void expectMissing(E... elements) {
161 for (E element : elements) {
174 public final E[] elements;
177 private ArrayWithDuplicate(E[] elements, E duplicate) {
178 this.elements = elements;
188 E[] elements = createSamplesArray();
189 E duplicate = elements[(elements.length / 2) - 1];
190 elements[(elements.length / 2) + 1] = duplicate;
191 return new ArrayWithDuplicate<E>(elements, duplicate);
209 * Returns the {@linkplain #getSampleElements() sample elements} as ordered by