Examples of ProblemMarkerInfo


Examples of org.infinitest.eclipse.markers.ProblemMarkerInfo

public class WhenCreatingFailureMarkers {
  @Test
  public void shouldStorePickledStackTraces() {
    Throwable throwable = new Throwable();
    throwable.fillInStackTrace();
    ProblemMarkerInfo info = new ProblemMarkerInfo(methodFailed("testName", "methodName", throwable), new FakeResourceFinder());

    String pickledStackTrace = info.attributes().get(PICKLED_STACK_TRACE_ATTRIBUTE).toString();
    StackTraceElement[] stackTrace = (StackTraceElement[]) unpickle(pickledStackTrace);
    assertEquals(throwable.getStackTrace().length, stackTrace.length);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.