use of org.jboss.tools.openshift.internal.ui.models.OpenshiftUIModel in project jbosstools-openshift by jbosstools.
the class OpenShiftProjectCacheTest method setUp.
@Before
public void setUp() throws Exception {
this.conn = spy(createConnection("spacecat", "42", "https://localhost:8880"));
doReturn(Arrays.asList(project)).when(conn).getResources(ResourceKind.PROJECT);
ConnectionsRegistry registry = ConnectionsRegistrySingleton.getInstance();
registry.clear();
registry.add(conn);
this.model = new OpenshiftUIModel(registry) {
};
this.connectionWrapper = model.getConnections().iterator().next();
}
use of org.jboss.tools.openshift.internal.ui.models.OpenshiftUIModel 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