ali中间件学习笔记

阿里中间件学习笔记

Posted by 敬方 on August 25, 2020

阿里中间件学习笔记

@Test
    public void testbreakpointStorePlay(){
        SopStoreBreakpointRequest request = new SopStoreBreakpointRequest();
        request.setSessionId("sid");
        request.setResumeParamMaps(Maps.newHashMap());
        Boolean res = Boolean.TRUE;
        doReturn(res).when(sopEngineManager).breakpointStorePlay(anyObject());
        Result<Void> result = sopRuntimeService.breakpointStorePlay(request,null);
        Assert.assertTrue(result.getSuccess());
        res = Boolean.FALSE;
        Result<Void> failRes = sopRuntimeService.breakpointStorePlay(request,null);
        Assert.assertFalse(failRes.getSuccess());

    }