Skip to content

Commit ba7e52c

Browse files
HendrikSPHendrik Spohr
andauthored
Stabilize DER system trust export tests across environments (#128)
Relax the system trust export assertions to require at least one generated DER certificate file, since trust store certificate counts vary by OS/JDK. Co-authored-by: Hendrik Spohr <hendrik@spohr.at>
1 parent 6011d9f commit ba7e52c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/nl/altindag/crip/command/export/DerExportCommandShould.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ void processSystemTrustedCertificates() throws IOException {
153153
.collect(Collectors.toList());
154154

155155
assertThat(files)
156-
.hasSizeGreaterThan(1)
156+
.isNotEmpty()
157157
.allMatch(path -> path.toString().endsWith(".crt"));
158158
}
159159

src/test/java/nl/altindag/crip/request/DerExportRequestShould.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ void processSystemTrustedCertificates() throws IOException {
172172
.collect(Collectors.toList());
173173

174174
assertThat(files)
175-
.hasSizeGreaterThan(1)
175+
.isNotEmpty()
176176
.allMatch(path -> path.toString().endsWith(".crt"));
177177
}
178178

0 commit comments

Comments
 (0)