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