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

import java.util.List;
import java.util.Map;

import com.blueland.ebpm.engine.BaseManagerTestCase;
import junit.framework.Assert;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ContextConfiguration;

import com.blueland.bpm.engine.core.service.ProcessTraceService;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * 工作流跟踪相关Service
 * 
 */
@SpringBootTest
@RunWith(SpringRunner.class)
public class ProcessTraceServiceTest  extends BaseManagerTestCase {
	@Autowired
	ProcessTraceService processTraceService;
	@Test
	public void traceProcess(){
		List<Map<String, Object>> activityInfos=null;
		try {
			activityInfos = processTraceService.traceProcess("4315");
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		Assert.assertEquals(true, activityInfos.size()>0);
	}


}
