Skip to content

Commit

Permalink
github #131 - ObjectArrayAssert.containsExactly() works wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-costigliola committed Feb 24, 2013
1 parent 3b77da8 commit 16a8053
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/main/java/org/fest/assertions/api/ObjectArrayAssert.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
*/
package org.fest.assertions.api;

import static org.fest.util.Lists.newArrayList;

import java.util.Comparator;

import org.fest.assertions.core.ArraySortedAssert;
Expand Down Expand Up @@ -96,7 +94,7 @@ public ObjectArrayAssert<T> containsOnly(T... values) {

/** {@inheritDoc} */
public ObjectArrayAssert<T> containsExactly(T... values) {
objects.assertEqual(info, actual, newArrayList(values));
objects.assertEqual(info, actual, values);
return this;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
package org.fest.assertions.api.objectarray;

import static org.fest.util.Lists.newArrayList;
import static org.mockito.Mockito.verify;

import org.fest.assertions.api.ObjectArrayAssert;
Expand All @@ -34,6 +33,6 @@ protected ObjectArrayAssert<Object> invoke_api_method() {

@Override
protected void verify_internal_effects() {
verify(objects).assertEqual(getInfo(assertions), getActual(assertions), newArrayList("Yoda", "Luke"));
verify(objects).assertEqual(getInfo(assertions), getActual(assertions), new String[] {"Yoda", "Luke"});
}
}

0 comments on commit 16a8053

Please sign in to comment.