Skip to content

fix/SootUpTestCases #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions testCore/src/main/java/test/TestingFramework.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,30 @@
import boomerang.scope.DataFlowScope;
import boomerang.scope.FrameworkScope;
import boomerang.scope.Method;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;

import java.util.*;
import java.util.stream.Collectors;
import org.junit.Assert;
import test.setup.MethodWrapper;
import test.setup.SootTestSetup;
import test.setup.SootUpTestSetup;
import test.setup.TestSetup;

public class TestingFramework {

private final TestSetup testSetup;

public TestingFramework() {
// TODO Parameterize
this.testSetup = new SootTestSetup();

String framework = System.getProperty("framework");
switch(framework){
case "soot":
this.testSetup = new SootTestSetup();
break;
case "sootup":
default:
this.testSetup = new SootUpTestSetup();
}
}

public FrameworkScope getFrameworkScope(MethodWrapper methodWrapper) {
Expand Down Expand Up @@ -104,10 +111,10 @@ protected String buildClassPath() {
}

protected List<String> getIncludedPackages() {
return Collections.emptyList();
return new ArrayList<>();
}

protected List<String> getExcludedPackages() {
return Collections.emptyList();
return new ArrayList<>();
}
}
Loading
Loading