equal
deleted
inserted
replaced
86 private static void validateCertificateTrust(String name) { |
86 private static void validateCertificateTrust(String name) { |
87 List<String> result = new Executor() |
87 List<String> result = new Executor() |
88 .setExecutable("security") |
88 .setExecutable("security") |
89 .addArguments("dump-trust-settings") |
89 .addArguments("dump-trust-settings") |
90 .executeAndGetOutput(); |
90 .executeAndGetOutput(); |
91 result.stream().peek(TKit::trace); |
91 result.stream().forEachOrdered(TKit::trace); |
92 result.stream() |
92 TKit.assertTextStream(name) |
93 .filter(line -> line.trim().endsWith(name)).findFirst().orElseThrow( |
93 .predicate((line, what) -> line.trim().endsWith(what)) |
94 () -> { |
94 .orElseThrow(() -> TKit.throwSkippedException( |
95 throw TKit.throwSkippedException("Certifcate not trusted by current user: " |
95 "Certifcate not trusted by current user: " + name)) |
96 + name); |
96 .apply(result.stream()); |
97 }); |
|
98 } |
97 } |
99 |
98 |
100 } |
99 } |