use of com.openshift.restclient.IClient in project jbosstools-openshift by jbosstools.
the class ConnectionTestUtils method createClient.
public static IClient createClient(String username, String token, String host) throws MalformedURLException {
IClient client = mock(IClient.class);
when(client.getBaseURL()).thenReturn(new URL(host));
doReturn(mockAuthorizationContext(username, token, true)).when(client).getAuthorizationContext();
return client;
}
use of com.openshift.restclient.IClient in project wildfly-swarm by wildfly-swarm.
the class ServiceWatcher method startWatcher.
private void startWatcher() {
IClient client = clientInjector.getValue();
listenerState.set(ListenerState.STARTING);
openShiftWatcher = client.watch(namespaceInjector.getValue(), this, ResourceKind.SERVICE);
}
Aggregations