Skip to content

Commit

Permalink
feat(objectionary#1417): remove static literals
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Nov 22, 2022
1 parent 0258d23 commit 11d30a3
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions eo-maven-plugin/src/test/java/org/eolang/maven/FakeMaven.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,6 @@
*/
public final class FakeMaven {

/**
* Default eo-foreign.csv file format.
*/
private static final String FOREIGN_FORMAT = "csv";

/**
* Default eo-foreign.csv file path.
*/
private static final Path FOREIGN_PATH = Paths.get("eo-foreign.csv");

/**
* Test workspace where we place all programs, files, compilation results, etc.
*/
Expand Down Expand Up @@ -101,7 +91,7 @@ public FakeMaven withProgram(final String... program) throws IOException {
public FakeMaven withDefaults() {
this.params.put("targetDir", this.targetPath().toFile());
this.params.put("foreign", this.foreignPath().toFile());
this.params.put("foreignFormat", FakeMaven.FOREIGN_FORMAT);
this.params.put("foreignFormat", "csv");
return this;
}

Expand Down Expand Up @@ -175,7 +165,7 @@ public Path targetPath() {
* @return Path to eo-foreign.* file.
*/
public Path foreignPath() {
return this.workspace.absolute(FakeMaven.FOREIGN_PATH);
return this.workspace.absolute(Paths.get("eo-foreign.csv"));
}

/**
Expand Down

0 comments on commit 11d30a3

Please sign in to comment.