Skip to content

Commit

Permalink
Please spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
algomaster99 committed Aug 25, 2023
1 parent 4f5cc3b commit e3e102e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions watchdog-agent/src/test/java/AgentTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ void sorald_0_8_5_shouldExitWith_1() throws IOException, InterruptedException {

@Test
void spoon_10_4_0() throws IOException, InterruptedException {
// contract: spoon 10.4.0 CLI should be self-contained and its execution should not load any classes outside SBOM
// contract: spoon 10.4.0 CLI should be self-contained and its execution should not load any classes outside
// SBOM
Path project = Paths.get("src/test/resources/spoon-10.4.0");

Path sbom = project.resolve("bom.json");
Expand All @@ -106,14 +107,14 @@ void spoon_10_4_0() throws IOException, InterruptedException {

String agentArgs = "sbom=" + sbom;
String[] cmd = {
"java",
"-javaagent:" + getAgentPath(agentArgs),
"-jar",
spoonExecutable.toString(),
"--input",
workload.toString(),
"--disable-comments", // remove comments and prints in spooned/Main.java
"--compile" // prints bytecode in spooned-classes
"java",
"-javaagent:" + getAgentPath(agentArgs),
"-jar",
spoonExecutable.toString(),
"--input",
workload.toString(),
"--disable-comments", // remove comments and prints in spooned/Main.java
"--compile" // prints bytecode in spooned-classes
};
ProcessBuilder pb = new ProcessBuilder(cmd);
pb.redirectInput(ProcessBuilder.Redirect.INHERIT);
Expand Down

0 comments on commit e3e102e

Please sign in to comment.