Package com.splunk

Examples of com.splunk.DistributedPeer


    List<JSONObject> actual = requestOnSearchPeers.execute().jsons;
    assertEquals(actual, new ArrayList<DistributedPeer>());
  }

  public void execute_onePeerThatThrows_emptyList() {
    DistributedPeer failingPeer = mock(DistributedPeer.class);
    mockServiceToReturnPeers(failingPeer);
    when(requestOnSearchPeer.executeRequest(failingPeer)).thenThrow(
        new RuntimeException());
    List<JSONObject> actual = requestOnSearchPeers.execute().jsons;
    assertEquals(actual, new ArrayList<DistributedPeer>());
View Full Code Here


    List<JSONObject> actual = requestOnSearchPeers.execute().jsons;
    assertEquals(actual, new ArrayList<DistributedPeer>());
  }

  public void execute_onePeerThrowsAnotherSucceeds_getsSucceedingPeersJson() {
    DistributedPeer failingPeer = mock(DistributedPeer.class);
    DistributedPeer successfulPeer = mock(DistributedPeer.class);
    JSONObject successfulJson = new JSONObject();

    mockServiceToReturnPeers(failingPeer, successfulPeer);
    when(requestOnSearchPeer.executeRequest(failingPeer)).thenThrow(
        new RuntimeException());
View Full Code Here

TOP

Related Classes of com.splunk.DistributedPeer

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.