package test;
import javax.annotation.Resource;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.ourlinc.activity.Page;
import com.ourlinc.activity.domain.Activity;
import com.ourlinc.activity.service.IActivityService;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:application.xml" })
public class TestActivityService {
private final Logger logger = LoggerFactory
.getLogger(TestActivityService.class);
@Resource
IActivityService activityService;
public void testA() {
Activity act = activityService.getActivity(-1);
if (logger.isDebugEnabled()) {
logger.debug(act.toString());
}
}
@Test
public void testB() {
Page page = activityService.listActDone(1);
if (logger.isDebugEnabled()) {
logger.debug(page.toString());
}
}
}