Package test.spot

Source Code of test.spot.charText

package test.spot;

import java.net.URL;
import java.util.List;

import org.apache.log4j.PropertyConfigurator;
import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.skyline.base.type.Activity;
import com.skyline.common.bean.Page;
import com.skyline.spot.model.SpotCharacteristic;
import com.skyline.spot.service.SpotCharacteristicService;

public class charText {
  static SpotCharacteristicService s=null;

  static {
    URL url = SpotCharacteristicService.class.getClassLoader().getResource(
        "config/logger/log4j.properties");
    PropertyConfigurator.configure(url);
  }

  @BeforeClass
  public static void before() {
    ApplicationContext ctx = new ClassPathXmlApplicationContext(
        "config/context/applicationContext.xml");
    s = (SpotCharacteristicService) ctx.getBean("spotCharacteristicService");
  }

  @Test
  public void query() {
    try {
      Page page = new Page();
      page.setSize(2);
    //  List<SpotCharacteristic> list =s.queryCharacteristicByOwnerId(Long.valueOf(12), page, Activity.NORMAL);
  //    System.out.println(list.isEmpty());
    } catch (Exception e) {
      e.printStackTrace();
    }
  }

}
TOP

Related Classes of test.spot.charText

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.