Search in sources :

Example 1 with ProjectWrapper

use of org.jboss.tools.openshift.internal.ui.models.ProjectWrapper in project jbosstools-openshift by jbosstools.

the class ProjectWrapperTest method initilize.

@Before
public void initilize() {
    this.connection = mock(IOpenShiftConnection.class);
    this.connectionWrapper = new ConnectionWrapper(mock(OpenshiftUIModel.class), connection);
    this.project = mock(IProject.class);
    when(project.getNamespaceName()).thenReturn("namespace");
    this.projectWrapper = new ProjectWrapper(connectionWrapper, project);
    WatchManager.getInstance()._getWatches().clear();
}
Also used : ProjectWrapper(org.jboss.tools.openshift.internal.ui.models.ProjectWrapper) IOpenShiftConnection(org.jboss.tools.openshift.core.connection.IOpenShiftConnection) ConnectionWrapper(org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper) IProject(com.openshift.restclient.model.IProject) Before(org.junit.Before)

Aggregations

IProject (com.openshift.restclient.model.IProject)1 IOpenShiftConnection (org.jboss.tools.openshift.core.connection.IOpenShiftConnection)1 ConnectionWrapper (org.jboss.tools.openshift.internal.ui.models.ConnectionWrapper)1 ProjectWrapper (org.jboss.tools.openshift.internal.ui.models.ProjectWrapper)1 Before (org.junit.Before)1