import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThrows;
+import java.io.Serial;
import java.util.concurrent.ExecutionException;
import org.junit.Test;
public class ReflectiveExceptionMapperTest {
static final class NoArgumentCtorException extends Exception {
+ @Serial
private static final long serialVersionUID = 1L;
NoArgumentCtorException() {
}
static final class PrivateCtorException extends Exception {
+ @Serial
private static final long serialVersionUID = 1L;
private PrivateCtorException(final String message, final Throwable cause) {
}
static final class FailingCtorException extends Exception {
+ @Serial
private static final long serialVersionUID = 1L;
FailingCtorException(final String message, final Throwable cause) {
}
public static final class GoodException extends Exception {
+ @Serial
private static final long serialVersionUID = 1L;
public GoodException(final String message, final Throwable cause) {