Package com.google.api.explorer.client.history

Examples of com.google.api.explorer.client.history.HistoryItem


    @SuppressWarnings("unchecked")
    ValueChangeEvent<String> event = EasyMock.createMock(ValueChangeEvent.class);
    EasyMock.expect(event.getValue()).andReturn(fragment);

    HistoryItem item = createEmptyHistoryItem();
    EasyMock.expect(historyCache.getHistoryItem("1")).andReturn(item);

    Capture<ExplorerContext> contextCapture = new Capture<ExplorerContext>();
    delegate.setContext(EasyMock.capture(contextCapture));
    EasyMock.expectLastCall();
View Full Code Here


  /** This is necessary because history item cannot be subclassed. */
  private HistoryItem createEmptyHistoryItem() {
    ApiRequest mockRequest = EasyMock.createMock(ApiRequest.class);
    ApiResponse mockResponse = EasyMock.createMock(ApiResponse.class);
    return new HistoryItem("1", mockRequest, mockResponse, 0, 0);
  }
View Full Code Here

    // Fill in the detail pane.
    detailPane.setVisible(context.isHistoryItemVisible() || context.isMethodFormVisible());
    detailPane.clear();

    if (context.isHistoryItemVisible()) {
      HistoryItem item = Iterables.getOnlyElement(context.getHistoryItems());
      EmbeddedHistoryItemView view = generateHistoryItemView(item);

      detailPane.add(view);
    } else if (context.isMethodFormVisible()) {
      ApiMethod method = context.getMethod();
View Full Code Here

TOP

Related Classes of com.google.api.explorer.client.history.HistoryItem

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.