@Test
public void testConfiguredRuntimeException() throws Throwable {
try {
conf.runAndThrow("foo", new RuntimeException("re message"));
fail();
} catch (RuntimeException e) {
assertThat(
LogbackTestAppender.getMessage(),
StringStartsWith
.startsWith("WARN call runAndThrow(objectParam=foo, throwable=java.lang.RuntimeException: re message) caused java.lang.RuntimeException: re message"
+ "\njava.lang.RuntimeException: re message"
+ "\n\tat com.github.sfleiter.cdi_interceptors.LoggingInterceptorTest.testConfiguredRuntimeException(LoggingInterceptorTest.java"));
}
}
LoggingInterceptorTest.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:cdi-interceptors
作者:
评论列表
文章目录