Skip to content

Commit

Permalink
Fixed plugins JARs matching in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed Nov 5, 2023
1 parent ffc9ab4 commit 4f321d8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/test/java/rife/bld/extension/dokka/DokkaOperationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import rife.bld.blueprints.BaseProjectBlueprint;

import java.io.File;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.IntStream;
Expand Down Expand Up @@ -81,6 +82,13 @@ void executeConstructProcessCommandListTest() {

assertThat(args).hasSize(matches.size());

IntStream.range(0, args.size()).forEach(i -> assertThat(args.get(i)).isEqualTo(matches.get(i)));
IntStream.range(0, args.size()).forEach(i -> {
if (args.get(1).contains(".jar;")) {
var jars = args.get(1).split(";");
Arrays.stream(jars).forEach(jar -> assertThat(matches.get(i)).contains(jar));
} else{
assertThat(args.get(i)).isEqualTo(matches.get(i));
}
});
}
}

0 comments on commit 4f321d8

Please sign in to comment.