Search in sources :

Example 6 with ConnectionsRegistry

use of org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry in project jbosstools-openshift by jbosstools.

the class RefreshTest method setUp.

@Before
public void setUp() {
    registry = new ConnectionsRegistry();
    model = new OpenshiftUIModelTestable(registry);
    listener = mock(IElementListener.class);
    model.addListener(listener);
    IOpenShiftConnection connection = mock(IOpenShiftConnection.class);
    registry.add(connection);
}
Also used : ConnectionsRegistry(org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry) IElementListener(org.jboss.tools.openshift.internal.ui.models.IElementListener) IOpenShiftConnection(org.jboss.tools.openshift.core.connection.IOpenShiftConnection) Before(org.junit.Before)

Aggregations

ConnectionsRegistry (org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry)6 IServer (org.eclipse.wst.server.core.IServer)3 CDKOpenshiftUtility (org.jboss.tools.openshift.cdk.server.core.internal.listeners.CDKOpenshiftUtility)3 ServiceManagerEnvironment (org.jboss.tools.openshift.cdk.server.core.internal.listeners.ServiceManagerEnvironment)3 IConnection (org.jboss.tools.openshift.common.core.connection.IConnection)3 Before (org.junit.Before)3 Test (org.junit.Test)3 IOpenShiftConnection (org.jboss.tools.openshift.core.connection.IOpenShiftConnection)1 IElementListener (org.jboss.tools.openshift.internal.ui.models.IElementListener)1 OpenshiftUIModel (org.jboss.tools.openshift.internal.ui.models.OpenshiftUIModel)1