Skip to content

Commit

Permalink
Spotless Apply
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandrouR committed Mar 6, 2020
1 parent 17f8ad5 commit b86a987
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
46 changes: 23 additions & 23 deletions src/main/java/org/web3j/console/project/InteractiveOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,55 +77,55 @@ public static Optional<String> getGeneratedWrapperLocation() {
print(
"Please enter the path of the generated contract wrappers ["
+ String.join(
separator,
System.getProperty("user.dir"),
"build",
"generated",
"source",
"web3j",
"main",
"java")
separator,
System.getProperty("user.dir"),
"build",
"generated",
"source",
"web3j",
"main",
"java")
+ "]");
String pathToTheWrappers = getUserInput();
return pathToTheWrappers.isEmpty()
? Optional.of(
String.join(
separator,
System.getProperty("user.dir"),
"build",
"generated",
"source",
"web3j",
"main",
"java"))
String.join(
separator,
System.getProperty("user.dir"),
"build",
"generated",
"source",
"web3j",
"main",
"java"))
: Optional.of(pathToTheWrappers);
}

public static Optional<String> setGeneratedTestLocationJava() {
print(
"Where would you like to save your tests ["
+ String.join(
separator, System.getProperty("user.dir"), "src", "test", "java")
separator, System.getProperty("user.dir"), "src", "test", "java")
+ "]");
String outputPath = getUserInput();
return outputPath.isEmpty()
? Optional.of(
String.join(
separator, System.getProperty("user.dir"), "src", "test", "java"))
String.join(
separator, System.getProperty("user.dir"), "src", "test", "java"))
: Optional.of(outputPath);
}

public static Optional<String> setGeneratedTestLocationKotlin() {
print(
"Where would you like to save your tests ["
+ String.join(
separator, System.getProperty("user.dir"), "src", "test", "kotlin")
separator, System.getProperty("user.dir"), "src", "test", "kotlin")
+ "]");
String outputPath = getUserInput();
return outputPath.isEmpty()
? Optional.of(
String.join(
separator, System.getProperty("user.dir"), "src", "test", "kotlin"))
String.join(
separator, System.getProperty("user.dir"), "src", "test", "kotlin"))
: Optional.of(outputPath);
}

Expand Down
3 changes: 2 additions & 1 deletion src/test/java/org/web3j/console/project/UpdaterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ private void testWorksWithVersion(String version) throws IOException {
"http://localhost:8081",
UUID.randomUUID().toString(),
Version.getVersion(),
null,null)
null,
null)
.defaultAnswer(Mockito.CALLS_REAL_METHODS));

doAnswer(
Expand Down

0 comments on commit b86a987

Please sign in to comment.