use of org.jboss.tools.openshift.internal.ui.models.applicationexplorer.ApplicationExplorerUIModel.ClusterClient in project jbosstools-openshift by jbosstools.
the class OpenShiftApplicationExplorerContentProviderTest method setup.
@Before
public void setup() throws Exception {
odo = mock(Odo.class);
ClusterClient info = mock(ClusterClient.class);
doReturn(odo).when(info).getOdo();
OdoCliFactory factory = mock(OdoCliFactory.class);
doReturn(CompletableFuture.completedFuture(odo)).when(factory).getOdo();
this.model = new ApplicationExplorerUIModel(info) {
@Override
protected OdoCliFactory getFactory() {
return factory;
}
};
this.provider = new OpenShiftApplicationExplorerContentProvider(model) {
};
}
Aggregations