@Test public void testEncryptionExceptionStringThrowable() { String message = "foo"; Throwable throwable = new Throwable(); EncryptionException encryptionException = new EncryptionException(message, throwable); assertEquals("Must be the same", message, encryptionException.getMessage()); assertEquals("Must be the same", throwable, encryptionException.getCause()); }
@Test public void testEncryptionExceptionThrowable() { Throwable throwable = new Throwable(); EncryptionException encryptionException = new EncryptionException(throwable); assertEquals("Must be the same", throwable, encryptionException.getCause()); }