Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-iov committed Aug 22, 2024
1 parent 6e12eca commit 413fd23
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,12 @@ void buildFromConfigHSM() throws SignerException {
}

@Test
void buildFromConfigUnknown() throws SignerException {
void buildFromConfigUnknown() {
Config configMock = mockConfig("a-random-type");
SignerConfig signerConfig = new SignerConfig("a-random-id", configMock);
try {
factory.buildFromConfig(signerConfig);
new SignerConfig("a-random-id", configMock);
fail();
} catch (RuntimeException e) {
} catch (IllegalArgumentException e) {
assertEquals("Unsupported signer type: a-random-type", e.getMessage());
}
}
Expand Down

0 comments on commit 413fd23

Please sign in to comment.