test_class.file: framework/frontend/src/test/java/org/koenighotze/jee7hotel/framework/frontend/ErrorBeanTest.java
test_class.identifier: ErrorBeanTest
test_case.body: @Test
      public void testGetExceptionStackTrace() throws Exception {
          RuntimeException exception = new RuntimeException("foo");
          exception.initCause(new RuntimeException(new IOException("BOOM")));
  
          String stackTrace = new ErrorBean().getExceptionStackTrace(exception);
          assertTrue(Stream.of(stackTrace)
                  .filter(s -> s.contains("BOOM"))
                  .findAny()
                  .isPresent());
          assertTrue(stackTrace.contains("foo"));
      }
test_case.class_method_signature: ErrorBeanTest.testGetExceptionStackTrace()
test_case.full_signature: @Test public void testGetExceptionStackTrace()
test_case.identifier: testGetExceptionStackTrace
test_case.invocations: initCause getExceptionStackTrace assertTrue isPresent findAny filter of contains assertTrue contains
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetExceptionStackTrace()
focal_class.declarator: LOGGER = Logger.getLogger(ErrorBean.class.getName())
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = Logger.getLogger(ErrorBean.class.getName());
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.file: framework/frontend/src/main/java/org/koenighotze/jee7hotel/framework/frontend/ErrorBean.java
focal_class.identifier: ErrorBean
focal_class.class_method_signature: ErrorBean.getExceptionStackTrace(Throwable t)
focal_class.full_signature: public String getExceptionStackTrace(Throwable t)
focal_class.identifier: getExceptionStackTrace
focal_class.modifiers: public
focal_class.parameters: (Throwable t)
focal_class.return: String
focal_class.signature: String getExceptionStackTrace(Throwable t)
focal_method.body: public String getExceptionStackTrace(Throwable t) {
          if (null == t) {
              return "";
          }
  
          LOGGER.log(Level.SEVERE, "Unexpected error condition", t);
          StringWriter sw = new StringWriter();
          try (PrintWriter w = new PrintWriter(sw)) {
              t.printStackTrace(w);
          }
          return sw.toString();
      }
focal_method.class_method_signature: ErrorBean.getExceptionStackTrace(Throwable t)
focal_method.full_signature: public String getExceptionStackTrace(Throwable t)
focal_method.identifier: getExceptionStackTrace
focal_method.invocations: log printStackTrace toString
focal_method.modifiers: public
focal_method.parameters: (Throwable t)
focal_method.return: String
focal_method.signature: String getExceptionStackTrace(Throwable t)