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) {
};
}
Aggregations