コード例 #1
0
  @Test
  public void 테스트_getStackTraceString() {
    Exception e = new InvalidClassException("e");

    assertThat(ExceptionUtil.createStacktrace(null)).isNull();
    assertThat(ExceptionUtil.createStacktrace(e)).isNotNull();
  }
コード例 #2
0
  @Test
  public void 테스트_getExceptionType() {
    Exception e = new IllegalArgumentException("e");

    assertThat(ExceptionUtil.createExceptionType(null)).isNull();
    assertThat(ExceptionUtil.createExceptionType(e)).isNotNull();
  }