blob: 3f050c449c7377efb232e5ca282425b4169d64b7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright Yahoo. 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());
}
}
|