Skip to content

Commit

Permalink
Added files needed for tests (junit4 + junit5 projects)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Apr 5, 2024
1 parent 2fbb70b commit 9f25813
Show file tree
Hide file tree
Showing 11 changed files with 2,009 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/test/java/org/codetracker/util/OracleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected static void loadExpected(String filePath) {
public <H extends AbstractHistoryInfo, E extends CodeElement> void testCodeTracker(CheckedBiFunction<H, String, History<E>> tracker, H historyInfo, String fileName) throws Exception {
String repositoryWebURL = historyInfo.getRepositoryWebURL();
//TODO temporary if check, remove when all local files are created
if(fileName.startsWith("checkstyle") || fileName.startsWith("commons-lang") || fileName.startsWith("flink") || fileName.startsWith("hibernate-orm") || fileName.startsWith("javaparser") || fileName.startsWith("jgit")) {
if(fileName.startsWith("checkstyle") || fileName.startsWith("commons-lang") || fileName.startsWith("flink") || fileName.startsWith("hibernate-orm") || fileName.startsWith("javaparser") || fileName.startsWith("jgit") || fileName.startsWith("junit")) {
HashMap<String, ChangeHistory> oracleChanges = oracle(historyInfo.getExpectedChanges());
History<E> history = tracker.apply(historyInfo, repositoryWebURL);
HashMap<String, ChangeHistory> detectedChanges = new HashMap<>();
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package junit.runner;

/**
* This class defines the current version of JUnit
*/
public class Version {
private Version() {
// don't instantiate
}

public static String id() {
return "4.13-SNAPSHOT";
}

public static void main(String[] args) {
System.out.println(id());
}
}
Loading

0 comments on commit 9f25813

Please sign in to comment.