Fixed plugins JARs matching in test
This commit is contained in:
parent
ffc9ab4bf8
commit
4f321d8c7a
1 changed files with 9 additions and 1 deletions
|
@ -20,6 +20,7 @@ import org.junit.jupiter.api.Test;
|
||||||
import rife.bld.blueprints.BaseProjectBlueprint;
|
import rife.bld.blueprints.BaseProjectBlueprint;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.stream.IntStream;
|
import java.util.stream.IntStream;
|
||||||
|
@ -81,6 +82,13 @@ class DokkaOperationTest {
|
||||||
|
|
||||||
assertThat(args).hasSize(matches.size());
|
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));
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue