File tree Expand file tree Collapse file tree
soot-infoflow-integration/test/soot/jimple/infoflow/integration/test/junit Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212import soot .jimple .infoflow .taintWrappers .ITaintPropagationWrapper ;
1313
1414import javax .xml .stream .XMLStreamException ;
15+
16+ import java .io .File ;
1517import java .io .IOException ;
1618import java .util .ArrayList ;
1719import java .util .Collections ;
2527public class OutputStreamTests extends RiverJUnitTests {
2628 private ISourceSinkManager getSourceSinkManager (IInfoflow infoflow ) {
2729 try {
28- XMLSourceSinkParser parser = XMLSourceSinkParser .fromFile ("./build/classes/res/OutputStreamAndWriters.xml" );
30+ File sourcesSinks =new File ("./build/classes/res/OutputStreamAndWriters.xml" );
31+ if (!sourcesSinks .exists ())
32+ sourcesSinks = new File ("./res/OutputStreamAndWriters.xml" );
33+ if (!sourcesSinks .exists ())
34+ throw new RuntimeException ("Source/sink definition file not found" );
35+ XMLSourceSinkParser parser = XMLSourceSinkParser .fromFile (sourcesSinks .getAbsolutePath ());
2936 return new SimpleSourceSinkManager (parser .getSources (), parser .getSinks (), infoflow .getConfig ());
3037 } catch (IOException e ) {
3138 throw new RuntimeException (e );
You can’t perform that action at this time.
0 commit comments