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