Package com.google.gwt.debugpanel.common

Examples of com.google.gwt.debugpanel.common.ExceptionData


    final StatisticsEvent event = mockery.mock(StatisticsEvent.class);
    mockery.checking(new Expectations() {{
      oneOf(event).getSubSystem(); will(returnValue("error"));
      oneOf(event).getEventGroupKey(); will(returnValue("error"));
      oneOf(event).getExtraParameter("type"); will(returnValue("error"));
      oneOf(event).getExtraParameter("error"); will(returnValue(new ExceptionData() {}));
      oneOf(event).getModuleName(); will(returnValue("module"));
      oneOf(event).getMillis(); will(returnValue(123.0));
    }});

    model.onStatisticsEvent(event);
View Full Code Here


    assertEquals(1, table.getRowCount());
  }

  public void testConstruction() {
    double start = Duration.currentTimeMillis();
    ExceptionData ex = data(new Throwable());
    model.add(event(start + 0, ex));
    model.add(event(start + 1, ex));
    model.add(event(start + 2, ex));
    view = new TestingGwtExceptionView(model);
    table = (FlexTable) view.getWidget();
View Full Code Here

    assertRow(2, start + 0, ex);
  }

  public void testData() {
    double start = Duration.currentTimeMillis();
    ExceptionData ex0 = data(new Throwable());
    ExceptionData ex1 = data(new Throwable("message"));
    ExceptionData ex2 = data(new Throwable("message", new Throwable()));
    model.add(event(start + 0, ex0));
    model.add(event(start + 1, ex1));
    model.add(event(start + 2, ex2));
    view = new TestingGwtExceptionView(model);
    table = (FlexTable) view.getWidget();
View Full Code Here

    assertRow(2, start + 0, ex0);
  }

  public void testInsertion() {
    double start = Duration.currentTimeMillis();
    ExceptionData ex = data(new Throwable());
    model.add(event(start + 0, ex));
    model.add(event(start + 1, ex));
    model.add(event(start + 2, ex));

    assertHeader();
View Full Code Here

    assertRow(2, start + 0, ex);
  }

  public void testRemoval() {
    double start = Duration.currentTimeMillis();
    ExceptionData ex = data(new Throwable());
    model.add(event(start + 0, ex));
    model.add(event(start + 1, ex));
    model.add(event(start + 2, ex));
    model.removeExceptionEvent(1);
View Full Code Here

TOP

Related Classes of com.google.gwt.debugpanel.common.ExceptionData

Copyright © 2018 www.massapicom. 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.