Package com.google.gwt.debugpanel.common

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


    mockery.assertIsSatisfied();
  }

  public void testJavaScriptObjectIsNotIgnored() {
    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() {}));
View Full Code Here


    }
  }

  private void dispatch(Throwable t) {
    double now = Utils.currentTimeMillis();
    StatisticsEvent event = dispatcher.newEvent("error", "error", now, "error");
    dispatcher.setExtraParameter(event, "error", serializer.serialize(t));
    dispatcher.dispatch(event);
  }
View Full Code Here

TOP

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

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.