Skip to content

Commit

Permalink
Merge pull request #1 from dufaux/master
Browse files Browse the repository at this point in the history
Remove the absolute paths in the test suite
  • Loading branch information
tdurieux committed Oct 19, 2015
2 parents 4e78880 + 2767fa9 commit 38e2d5c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added nopol/misc/nopol-example/hamcrest-core-1.3.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public void gettersOfFields() {
public void replaceQuotationMarksToCollectSubconditions() {
RuntimeValues<Boolean> runtimeValues = RuntimeValues.newInstance();
String invocation = runtimeValues.invocationOnCollectionOf("\"aaaa\".startsWith(\"b\")");
String toMatch = "try{fr.inria.lille.commons.trace.RuntimeValues.instance(0).collectInput(\"\\\"aaaa\\\".startsWith(\\\"b\\\")\",\"aaaa\".startsWith(\"b\"));} catch (Exception ex1) {ex1.printStackTrace();}";
String toMatch = "try{"+runtimeValues.globallyAccessibleName()+".collectInput(\"\\\"aaaa\\\".startsWith(\\\"b\\\")\",\"aaaa\".startsWith(\"b\"));} catch (Exception ex1) {ex1.printStackTrace();}";
assertTrue(invocation + " ends with " + toMatch, invocation.endsWith(toMatch));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ private void test(int nopolExampleNumber, Map<String, Object[]> o, int line, Str
tests.add(testName + "#" + next);
}

String classpath = "../test-projects/target/test-classes:../test-projects/target/classes/:/home/thomas/.m2/repository/junit/junit/4.11/junit-4.11.jar:/home/thomas/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar";
String classpath = "../test-projects/target/test-classes:../test-projects/target/classes/:misc/nopol-example/junit-4.11.jar:misc/nopol-example/hamcrest-core-1.3.jar";
SourceLocation location = new SourceLocation(className, line);
File[] files = new File []{new File("../test-projects/src/main/java/"), new File("../test-projects/src/test/java/")};
Synthesizer synthesizer = new SynthesizerImpl(files, location, JavaLibrary.classpathFrom(classpath), oracle, tests.toArray(new String[0]));
Expand Down

0 comments on commit 38e2d5c

Please sign in to comment.