package cmu.defect4j.math3.optim;
import gov.nasa.jpf.util.test.TestJPF;
import org.junit.Test;
public class SimpleValueCheckerTest extends TestJPF {
private final String[] config = {"+nhandler.delegateUnhandledNative", "+classpath+=${jpf-core}/lib/junit-4.11.jar,lib/commons-math-3.1-SNAPSHOT.jar"};
public static void main(String[] testMethods){
runTestsOfThisClass(testMethods);
}
@Test(timeout=1000000)
public void testIterationCheck() throws Exception {
if (verifyNoPropertyViolation(config)) {
org.apache.commons.math3.optim.SimpleValueCheckerTest object = new org.apache.commons.math3.optim.SimpleValueCheckerTest();
object.testIterationCheck();
}
}
@Test(timeout=1000000)
public void testIterationCheckPrecondition() throws Exception {
if (verifyUnhandledException("org.apache.commons.math3.exception.NotStrictlyPositiveException", config)) {
org.apache.commons.math3.optim.SimpleValueCheckerTest object = new org.apache.commons.math3.optim.SimpleValueCheckerTest();
object.testIterationCheckPrecondition();
}
}
@Test(timeout=1000000)
public void testIterationCheckDisabled() throws Exception {
if (verifyNoPropertyViolation(config)) {
org.apache.commons.math3.optim.SimpleValueCheckerTest object = new org.apache.commons.math3.optim.SimpleValueCheckerTest();
object.testIterationCheckDisabled();
}
}
}