Skip to content

Commit 2d11de8

Browse files
Add unit test
1 parent 358131c commit 2d11de8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test/java/org/tomitribe/auth/signatures/AlgorithmTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,12 @@ public void nonAlphaNumericsIgnored() throws Exception {
102102
public void unsupportedAlgorithmException() throws Exception {
103103
Algorithm.get("HmacMD256");
104104
}
105+
106+
@Test
107+
public void getSigningAlgorithm() throws Exception {
108+
for (final SigningAlgorithm algorithm : SigningAlgorithm.values()) {
109+
SigningAlgorithm s = SigningAlgorithm.get(algorithm.getAlgorithmName());
110+
assertEquals(algorithm, s);
111+
}
112+
}
105113
}

0 commit comments

Comments
 (0)