File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/test/java/com/eatthepath/otp Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 3131import java .util .Locale ;
3232import java .util .stream .Stream ;
3333
34- import static org .junit .jupiter .api .Assertions .assertEquals ;
35- import static org .junit .jupiter .api .Assertions .assertThrows ;
34+ import static org .junit .jupiter .api .Assertions .*;
3635import static org .junit .jupiter .params .provider .Arguments .arguments ;
3736
3837public class HmacOneTimePasswordGeneratorTest {
@@ -53,8 +52,10 @@ void testHmacOneTimePasswordGeneratorWithLongPasswordLength() {
5352
5453 @ Test
5554 void testHmacOneTimePasswordGeneratorWithBogusAlgorithm () {
56- assertThrows (UncheckedNoSuchAlgorithmException .class , () ->
55+ final UncheckedNoSuchAlgorithmException exception = assertThrows (UncheckedNoSuchAlgorithmException .class , () ->
5756 new HmacOneTimePasswordGenerator (6 , "Definitely not a real algorithm" ));
57+
58+ assertNotNull (exception .getCause ());
5859 }
5960
6061 @ Test
You can’t perform that action at this time.
0 commit comments