|
|
@ -1,7 +1,7 @@
|
|
|
|
package endtoend.java.tracing;
|
|
|
|
package endtoend.java.tracing;
|
|
|
|
|
|
|
|
|
|
|
|
import static org.hamcrest.MatcherAssert.assertThat;
|
|
|
|
import static org.hamcrest.MatcherAssert.assertThat;
|
|
|
|
import static utils.matchers.ResultContainsErrorInMethod.contains;
|
|
|
|
import static utils.matchers.ResultContainsExactly.containsExactly;
|
|
|
|
|
|
|
|
|
|
|
|
import org.junit.BeforeClass;
|
|
|
|
import org.junit.BeforeClass;
|
|
|
|
import org.junit.Test;
|
|
|
|
import org.junit.Test;
|
|
|
@ -31,13 +31,16 @@ public class LocallyDefinedExceptionTest {
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void whenEradicateRunsOnConstructorThenFieldNotInitializedIsFound()
|
|
|
|
public void whenEradicateRunsOnConstructorThenFieldNotInitializedIsFound()
|
|
|
|
throws IOException, InterruptedException, InferException {
|
|
|
|
throws IOException, InterruptedException, InferException {
|
|
|
|
|
|
|
|
String[] methods = {
|
|
|
|
|
|
|
|
"fieldInvariant"
|
|
|
|
|
|
|
|
};
|
|
|
|
assertThat(
|
|
|
|
assertThat(
|
|
|
|
"Results should contain " + LOCALLY_DEFINED_EXCEPTION,
|
|
|
|
"Results should contain " + LOCALLY_DEFINED_EXCEPTION,
|
|
|
|
inferResults,
|
|
|
|
inferResults,
|
|
|
|
contains(
|
|
|
|
containsExactly(
|
|
|
|
LOCALLY_DEFINED_EXCEPTION,
|
|
|
|
LOCALLY_DEFINED_EXCEPTION,
|
|
|
|
SOURCE_FILE,
|
|
|
|
SOURCE_FILE,
|
|
|
|
"fieldInvariant"
|
|
|
|
methods
|
|
|
|
)
|
|
|
|
)
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|