コード例 #1
0
 @Test
 public void shouldReturnEnrichedStackTraceAsString() {
   assertTrue(
       "JUnit jar " + JUNIT_JAR_PATTERN + " not found in stack trace as String",
       enricher.getStackTraceAsString(exception).contains(JUNIT_JAR_PATTERN));
 }
コード例 #2
0
 @Test
 public void shouldParseRtJar() {
   assertTrue(
       "Java RT jar not properly determined.",
       enricher.getStackTraceAsString(exception).contains(RT_JAR));
 }
コード例 #3
0
 @Test
 public void shouldAddVersionWhenAvailable() {
   assertTrue(
       "Version not added for rt.jar",
       enricher.getStackTraceAsString(exception).contains(RT_JAR + ":" + javaVersion));
 }