Class org.lightningj.paywall.tokengenerator.BaseTokenGeneratorSpec

13

tests

0

failures

0

ignored

0.119s

duration

100%

successful

Tests

Test Duration Result
Test generate generateToken and parseToken generates valid JWS data without encryption. 0.079s passed
Verify that checkExpireDate with expired jwtClaims throws TokenVerifyException 0.002s passed
Verify that checkExpireDate with no expire date set in jwtClaims throws TokenVerifyException 0.003s passed
Verify that checkNotBefore with not yet claim set doesn't throw TokenVerifyException 0.001s passed
Verify that checkNotBefore with not yet jwtClaims throws TokenVerifyException 0.002s passed
Verify that correct PreImageData is generated 0.002s passed
Verify that generateInvoiceToken generates a valid invoice token 0.004s passed
Verify that generatePaymentToken generates a valid payment token 0.005s passed
Verify that generateSettlementToken generates a valid invoice token 0.004s passed
Verify that generation of encrypted JWT is decryptable with same key 0.008s passed
Verify that parseToken() with null token throws TokenException 0s passed
Verify that parsing of VO objects throws JsonException if no related claim found in token 0.006s passed
Verify that parsing of VO objects works 0.003s passed