use of org.ow2.proactive_grid_cloud_portal.studio.StudioRest 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);
}
Aggregations