Search in sources :

Example 1 with SchedulerStateRest

use of org.ow2.proactive_grid_cloud_portal.scheduler.SchedulerStateRest in project scheduling by ow2-proactive.

the class SessionSharingTest method setUp.

@Before
public void setUp() throws Exception {
    schedulerRest = new SchedulerStateRest();
    rmRest = new RMRest();
    studioRest = new StudioRest();
    SchedulerRMProxyFactory schedulerFactory = mock(SchedulerRMProxyFactory.class);
    rmMock = mock(RMProxyUserInterface.class);
    when(schedulerFactory.connectToRM(Matchers.<CredData>any())).thenReturn(rmMock);
    schedulerMock = mock(SchedulerProxyUserInterface.class);
    when(schedulerFactory.connectToScheduler(Matchers.<CredData>any())).thenReturn(schedulerMock);
    SharedSessionStore.getInstance().setSchedulerRMProxyFactory(schedulerFactory);
}
Also used : StudioRest(org.ow2.proactive_grid_cloud_portal.studio.StudioRest) SchedulerProxyUserInterface(org.ow2.proactive.scheduler.common.util.SchedulerProxyUserInterface) SchedulerStateRest(org.ow2.proactive_grid_cloud_portal.scheduler.SchedulerStateRest) RMProxyUserInterface(org.ow2.proactive.resourcemanager.common.util.RMProxyUserInterface) RMRest(org.ow2.proactive_grid_cloud_portal.rm.RMRest) SchedulerRMProxyFactory(org.ow2.proactive_grid_cloud_portal.common.SchedulerRMProxyFactory) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 RMProxyUserInterface (org.ow2.proactive.resourcemanager.common.util.RMProxyUserInterface)1 SchedulerProxyUserInterface (org.ow2.proactive.scheduler.common.util.SchedulerProxyUserInterface)1 SchedulerRMProxyFactory (org.ow2.proactive_grid_cloud_portal.common.SchedulerRMProxyFactory)1 RMRest (org.ow2.proactive_grid_cloud_portal.rm.RMRest)1 SchedulerStateRest (org.ow2.proactive_grid_cloud_portal.scheduler.SchedulerStateRest)1 StudioRest (org.ow2.proactive_grid_cloud_portal.studio.StudioRest)1