Skip to content

Commit

Permalink
feat: add a testclass as temp api
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinWitt committed Jan 10, 2022
1 parent 0c1db3b commit 78bde9f
Showing 1 changed file with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

package xyz.keksdose.spoon.code_solver;

import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import xyz.keksdose.spoon.code_solver.github.CommitBuilder;

/**
* Because we currently have no real API this is the current solution.
*/
@Disabled
public class API {

@Test
void applyWithGitSettings() {
String projectPath = "";
String typeToRefactorName = "";
String pathToLocalGitRepo = "";
CommitBuilder.refactorRepo(pathToLocalGitRepo, projectPath, typeToRefactorName, (v, u) -> {
return new TransformationEngine().applyToGivenPath(projectPath, typeToRefactorName, RunMode.FULL);
});
}

@Test
void applyWithoutGit() {
String projectPath = "";
String typeToRefactorName = "";
new TransformationEngine().applyToGivenPath(projectPath, typeToRefactorName, RunMode.FULL);
}
}

0 comments on commit 78bde9f

Please sign in to comment.