Skip to content

Commit

Permalink
clean up to fix test failing in GHWorkflow
Browse files Browse the repository at this point in the history
  • Loading branch information
stefano81 committed Feb 29, 2024
1 parent 922f701 commit c8f05a7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,16 @@
<artifactId>bcprov-jdk18on</artifactId>
<version>1.77</version>
</dependency>
<dependency>
<groupId>info.picocli</groupId>
<artifactId>picocli</artifactId>
<version>4.5.2</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.11.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>info.picocli</groupId>
<artifactId>picocli</artifactId>
<version>4.5.2</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ public void validateFileOutput() {
}

static abstract class ForcibleCommand extends BasicCommand {

@Option(names = { "-f", "--force" }, description = "Enables overwriting. Disabled by default")
void setForceOverwrite(boolean forceFlag) {
this.overwriteEnabled = forceFlag;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/sg/edu/ntu/sce/sands/crypto/DCPABETool.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
},
footer = {"","Run COMMAND --help for more information on a command."})
public class DCPABETool implements Runnable {

@Spec CommandSpec commandSpec;

@Option(names = {"--version", "-V"}, versionHelp = true, description = "print version information and exit")
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/sg/edu/ntu/sce/sands/crypto/DCPABEToolTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
import java.io.PrintStream;
import java.io.PrintWriter;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import java.util.stream.Stream;

import static org.junit.jupiter.api.Assertions.assertEquals;
Expand Down Expand Up @@ -43,7 +43,7 @@ public static void beforeAll() throws Exception {
gpFile = Files.createTempFile("dcpabe", "gp").toFile();
cmd = new CommandLine(new DCPABETool());
cmd.execute("gsetup", "-f", gpFile.getPath());
resFile = new File(DCPABEToolTest.class.getResource("/testResource.txt").toURI());
resFile = new File(Objects.requireNonNull(DCPABEToolTest.class.getResource("/testResource.txt")).toURI());
}

@BeforeEach
Expand Down

0 comments on commit c8f05a7

Please sign in to comment.