mirror of
https://github.com/jwtk/jjwt.git
synced 2025-03-27 18:38:23 +00:00
17 lines
429 B
Groovy
17 lines
429 B
Groovy
package io.jsonwebtoken.io
|
|
|
|
import org.junit.Test
|
|
|
|
import static org.junit.Assert.assertEquals
|
|
|
|
class EncodingExceptionTest {
|
|
|
|
@Test
|
|
void testConstructorWithCause() {
|
|
def ioException = new java.io.IOException("root error")
|
|
def exception = new EncodingException("wrapping", ioException)
|
|
assertEquals "wrapping", exception.getMessage()
|
|
assertEquals ioException, exception.getCause()
|
|
}
|
|
}
|