package cmu.defect4j.google.javascript.jscomp;
import gov.nasa.jpf.util.test.TestJPF;
import org.junit.Test;
import junit.framework.TestCase;
public class ExploitAssignsTest extends TestJPF {
private final String[] config = {"+nhandler.delegateUnhandledNative", "+classpath+=${jpf-core}/lib/junit-4.11.jar,lib/compiler.jar"};
public static void main(String[] testMethods){
runTestsOfThisClass(testMethods);
}
@Test(timeout=120000)
public void testExprExploitation() throws Exception {
if (verifyNoPropertyViolation(config)) {
TestCase testcase = new com.google.javascript.jscomp.ExploitAssignsTest() {
public void runTest() throws Exception {
testExprExploitation();
}
};
testcase.run();
}
}
@Test(timeout=120000)
public void testBug1840071() throws Exception {
if (verifyNoPropertyViolation(config)) {
TestCase testcase = new com.google.javascript.jscomp.ExploitAssignsTest() {
public void runTest() throws Exception {
testBug1840071();
}
};
testcase.run();
}
}
@Test(timeout=120000)
public void testExprExploitationTypes() throws Exception {
if (verifyNoPropertyViolation(config)) {
TestCase testcase = new com.google.javascript.jscomp.ExploitAssignsTest() {
public void runTest() throws Exception {
testExprExploitationTypes();
}
};
testcase.run();
}
}
@Test(timeout=120000)
public void testExprExploitationTypes2() throws Exception {
if (verifyNoPropertyViolation(config)) {
TestCase testcase = new com.google.javascript.jscomp.ExploitAssignsTest() {
public void runTest() throws Exception {
testExprExploitationTypes2();
}
};
testcase.run();
}
}
@Test(timeout=120000)
public void testNestedExprExploitation() throws Exception {
if (verifyNoPropertyViolation(config)) {
TestCase testcase = new com.google.javascript.jscomp.ExploitAssignsTest() {
public void runTest() throws Exception {
testNestedExprExploitation();
}
};
testcase.run();
}
}
@Test(timeout=120000)
public void testBug2072343() throws Exception {
if (verifyNoPropertyViolation(config)) {
TestCase testcase = new com.google.javascript.jscomp.ExploitAssignsTest() {
public void runTest() throws Exception {
testBug2072343();
}
};
testcase.run();
}
}
@Test(timeout=120000)
public void testBadCollapseIntoCall() throws Exception {
if (verifyNoPropertyViolation(config)) {
TestCase testcase = new com.google.javascript.jscomp.ExploitAssignsTest() {
public void runTest() throws Exception {
testBadCollapseIntoCall();
}
};
testcase.run();
}
}
@Test(timeout=120000)
public void testBadCollapse() throws Exception {
if (verifyNoPropertyViolation(config)) {
TestCase testcase = new com.google.javascript.jscomp.ExploitAssignsTest() {
public void runTest() throws Exception {
testBadCollapse();
}
};
testcase.run();
}
}
}