blob: 029ec1945031baa61cf1f4e4b7cab1793b83514c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.subscription;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* @author Ulf Lilleengen
*/
public class ConfigInterruptedExceptionTest {
@Test
public void require_that_throwable_is_preserved() {
ConfigInterruptedException e = new ConfigInterruptedException(new RuntimeException("foo"));
assertEquals("foo", e.getCause().getMessage());
}
}
|