Package test

Source Code of test.TestActivityService

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());
    }
  }
}
TOP

Related Classes of test.TestActivityService

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.