Lines Matching refs:mockQuery
38 private WebtopNamingQuery mockQuery;
45 mockQuery = mock(WebtopNamingQuery.class);
46 utils = new WebtopNamingSiteUtils(mock(Debug.class), mockQuery);
59 given(mockQuery.getSiteID(eq(serverID))).willReturn(siteID);
65 verify(mockQuery).getSiteNodes(eq(siteID));
73 given(mockQuery.getSiteID(eq(serverID))).willReturn(null);
88 given(mockQuery.getSiteID(eq(serverID))).willReturn(siteID);
89 given(mockQuery.getSiteNodes(anyString())).willThrow(new Exception());
100 given(mockQuery.getSiteID(eq(serverID))).willReturn(null);
101 given(mockQuery.getServerFromID(anyString())).willReturn("http://localhost");
115 given(mockQuery.getSiteID(eq(serverID))).willReturn(null);
116 given(mockQuery.getServerFromID(anyString())).willReturn("badgerbadger...");