Skip to content

Commit

Permalink
refactor: reorganize test setup
Browse files Browse the repository at this point in the history
* Reorder a bit.
* Adds a specific set for CaName rather than depending on the default.
  • Loading branch information
swalchemist committed Jan 27, 2024
1 parent a53b8ff commit e2b0276
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ public void validate_rejectsInvalidExtendedKeyUsages() {
}
}

subject.setCa(false);
subject.setSelfSigned(false);
@Test(expected = MissingSigningCACertificateException.class)
public void validate_notSelfSigned_andNotCa_requiresCaName() {
subject.setCommonName("foo");

subject.setCa(false);
subject.setSelfSigned(false);
subject.setCaName(null);

subject.validate();
}
Expand Down

0 comments on commit e2b0276

Please sign in to comment.