Use doesNotContain instead of containsExactly none

Summary:
public

Remove double negation in test check as per jrm's comment on D2695548.

Reviewed By: jeremydubreil

Differential Revision: D2743862

fb-gh-sync-id: d7cc0d0
master
Josh Berdine 9 years ago committed by facebook-github-bot-7
parent 6d9c5c684e
commit d99b6ca492

@ -10,7 +10,7 @@
package endtoend.java.eradicate;
import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsExactly.containsExactly;
import static utils.matchers.ResultContainsNoErrorInMethod.doesNotContain;
import org.junit.BeforeClass;
import org.junit.Test;
@ -37,16 +37,14 @@ public class NoReuseUndefFunctionValuesTest {
}
@Test
public void matchErrors()
throws IOException, InterruptedException, InferException {
String[] noMethods = {};
public void matchErrors() throws IOException, InterruptedException, InferException {
assertThat(
"Results should contain " + FIELD_NOT_INITIALIZED,
"Results should not contain " + FIELD_NOT_INITIALIZED,
inferResults,
containsExactly(
doesNotContain(
FIELD_NOT_INITIALIZED,
SOURCE_FILE,
noMethods));
"<init>"));
}
}

Loading…
Cancel
Save