package com.ibm.wala.dalvik.test.callGraph; import java.io.File; import java.io.IOException; import java.lang.reflect.InvocationTargetException; import java.net.URI; import org.junit.Test; import com.ibm.wala.core.tests.util.TestConstants; import com.ibm.wala.ipa.cha.ClassHierarchyException; import com.ibm.wala.shrikeBT.analysis.Analyzer.FailureException; import com.ibm.wala.shrikeCT.InvalidClassFileException; import com.ibm.wala.util.CancelException; public class DynamicDalvikComparisonTestForAndroidLibs extends DynamicDalvikComparisonTest { protected URI[] providedAndroidLibs() { return androidLibs(); } @Test public void testJLex() throws ClassHierarchyException, IllegalArgumentException, IOException, CancelException, InterruptedException, ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InvalidClassFileException, FailureException { File inputFile = testFile("sample.lex"); test(providedAndroidLibs(), TestConstants.JLEX_MAIN, TestConstants.JLEX, inputFile.getAbsolutePath()); } @Test public void testJavaCup() throws ClassHierarchyException, IllegalArgumentException, IOException, CancelException, InterruptedException, ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InvalidClassFileException, FailureException { File inputFile = testFile("troff2html.cup"); test(providedAndroidLibs(), TestConstants.JAVA_CUP_MAIN, TestConstants.JAVA_CUP, inputFile.getAbsolutePath()); } }