Search in sources :

Example 1 with OpenShiftExplorerContentProvider

use of org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider in project jbosstools-openshift by jbosstools.

the class OpenShiftExplorerContentProviderTest method setup.

@Before
public void setup() throws Exception {
    this.connection = spy(ConnectionTestUtils.createConnection("auser", "atoken", OPENSHIFT_SERVER_URL));
    doReturn(true).when(connection).ownsResource(any(IResource.class));
    this.registry = ConnectionsRegistrySingleton.getInstance();
    registry.clear();
    registry.add(connection);
    this.model = new OpenshiftUIModel(registry) {
    };
    this.connectionWrapper = model.getConnections().iterator().next();
    this.provider = new OpenShiftExplorerContentProvider(model) {
    };
}
Also used : OpenShiftExplorerContentProvider(org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider) OpenshiftUIModel(org.jboss.tools.openshift.internal.ui.models.OpenshiftUIModel) IResource(com.openshift.restclient.model.IResource) Before(org.junit.Before)

Aggregations

IResource (com.openshift.restclient.model.IResource)1 OpenShiftExplorerContentProvider (org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider)1 OpenshiftUIModel (org.jboss.tools.openshift.internal.ui.models.OpenshiftUIModel)1 Before (org.junit.Before)1