package com.blueland.ebpm.engine.core.service;

import com.blueland.ebpm.engine.BaseManagerTestCase;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;

@SpringBootTest
@RunWith(SpringRunner.class)
public class ProcessListServiceTest extends BaseManagerTestCase {
	/*
	 * @Autowired private ProcessListService processListService;
	 * 
	 * @Autowired protected ProcessDefinitionService processDefinitionService;
	 * 
	 * @Test public void queryNewList() { String userId="bumenlingdao1"; //
	 * List<ProcessDefinitionModel>
	 * pdfs=processListService.queryNewList(userId,null); // for
	 * (ProcessDefinitionModel pdf : pdfs) { ProcessDefinitionEntity
	 * pdfe=(ProcessDefinitionEntity) pdf; System.out.println(pdfe);
	 * List<ActivityImpl>
	 * wfActivitys=processDefinitionService.getProcessActivitys(pdfe.getId());
	 * System.out.println(wfActivitys); ActivityImpl startActivity=(ActivityImpl)
	 * processDefinitionService.getStartActivity(pdfe.getId()); List
	 * nextActivityJson=processDefinitionService.getActivityUserTree("",pdfe.getId()
	 * , startActivity.getId(),"","");
	 * 
	 * //System.out.println(nextActivityJson); //} // BpmnModel
	 * bpmnModel=repositoryService.getBpmnModel("PROCESS_1"); //
	 * System.out.println(bpmnModel);
	 * 
	 * }
	 * 
	 * @Test public void queryTodoList() {
	 * 
	 * String userId="longwen"; SearchProcessListDTO pageRequest=new
	 * SearchProcessListDTO(); pageRequest.setPageNumber(1);
	 * pageRequest.setPageSize(10); pageRequest.setUserId("zhuguanlingdao");
	 * Page<ActivityInstanceModel>
	 * taskPage=processListService.queryTodoList(pageRequest);
	 * 
	 * }
	 * 
	 * @Test public void queryTodoListCount() {
	 * 
	 * String userId="longwen"; SearchProcessListDTO pageRequest=new
	 * SearchProcessListDTO(); pageRequest.setPageNumber(1);
	 * pageRequest.setPageSize(10); pageRequest.setUserId("zhuguanlingdao"); int
	 * count= processListService.queryTodoListCount(pageRequest);
	 * 
	 * }
	 * 
	 * public void queryZaibanList() {
	 * 
	 * String userId="longwen"; }
	 * 
	 * @Test public void queryFinishList() { String userId="longwen";
	 * SearchProcessListDTO pageRequest=new SearchProcessListDTO();
	 * pageRequest.setPageNumber(1); pageRequest.setPageSize(10);
	 * pageRequest.setUserId("zhuguanlingdao"); Page<ProcessInstanceModel>
	 * historicProcessInstance = processListService.queryFinishList(pageRequest);
	 * 
	 * }
	 */
}
