Skip to content

Commit f1fad7e

Browse files
committed
Initial-Setup
1 parent 0433eb2 commit f1fad7e

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

.classpath

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
<attribute name="maven.pomderived" value="true"/>
3838
</attributes>
3939
</classpathentry>
40+
<classpathentry including="**/*.java" kind="src" output="target/test-classes" path="src/systemTest/java">
41+
<attributes>
42+
<attribute name="test" value="true"/>
43+
</attributes>
44+
</classpathentry>
4045
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
4146
<attributes>
4247
<attribute name="maven.pomderived" value="true"/>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package soot.testing.framework;
2+
3+
import org.junit.Test;
4+
5+
import soot.Scene;
6+
import soot.SootMethod;
7+
import soot.jimple.toolkits.callgraph.CallGraph;
8+
import soot.jimple.toolkits.callgraph.ReachableMethods;
9+
10+
public class DefaultInterfaceTest extends AbstractTestingFramework {
11+
12+
@Test
13+
public void interfaceTest()
14+
{
15+
String testClass = "soot.interfaceTesting.TestMain";
16+
17+
final SootMethod target = prepareTarget(methodSigFromComponents(testClass, "void", "main"), testClass);
18+
19+
final CallGraph cg = Scene.v().getCallGraph();
20+
21+
final ReachableMethods methods = Scene.v().getReachableMethods();
22+
}
23+
24+
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package soot.interfaceTesting;
2+
3+
public class TestMain implements Default {
4+
public void main()
5+
{
6+
TestMain main = new TestMain();
7+
main.target();
8+
main.printMessage();
9+
}
10+
public void printMessage()
11+
{
12+
System.out.println("Hello World!");
13+
}
14+
}
15+
16+
17+
interface Default{
18+
default void target() {
19+
System.out.println("Hello!");
20+
}
21+
void printMessage();
22+
}
23+

0 commit comments

Comments
 (0)