Package junit.test

Source Code of junit.test.ResourcesServiceImplTest

package junit.test;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.lanyuan.service.impl.ResourcesServiceImpl;

public class ResourcesServiceImplTest {

  @Test
  public void test() {
            ApplicationContext ctx = new ClassPathXmlApplicationContext("spring-*.xml")
            ResourcesServiceImpl bean = (ResourcesServiceImpl)ctx.getBean("resourcesService");
            bean.findAll();
            bean.getById("1");
            bean.getUserResources("1");
  }

}
TOP

Related Classes of junit.test.ResourcesServiceImplTest

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.