package test;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.asiainfo.webservice.service.SayHello;
/**
*
* @author xiahui@asiainfo-linkage.com
* @version 1.0, 10 Apr 2013
* @since JDK1.5
*/
public class SpringTest {
@BeforeClass
public static void setUpBeforeClass() throws Exception {
System.out.println("setUpBeforeClass");
}
@AfterClass
public static void tearDownAfterClass() throws Exception {
System.out.println("tearDownAfterClass");
}
@Before
public void setUp() throws Exception {
System.out.println("setUp");
}
@After
public void tearDown() throws Exception {
System.out.println("tearDown");
}
@Test
public void testStartSpring() throws Exception {
AbstractApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
SayHello sayHello = (SayHello)ctx.getBean("sayHello");
String result = sayHello.say("xiahui");
System.out.println(result);
ctx.close();
System.out.println("Spring start success...");
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
CxfSpringJetty.zip (51个子文件)
CxfSpringJetty
bin
test
SpringTest.class 2KB
log4j.properties 2KB
com
asiainfo
webservice
service
endpoint
Server.class 1KB
SayHello.class 249B
factory
BeanFactory.class 1KB
impl
SayHelloImpl.class 861B
applicationContext.xml 845B
log.log 3KB
config
log4j.properties 2KB
applicationContext.xml 845B
.settings
org.eclipse.jdt.core.prefs 629B
src
com
asiainfo
webservice
service
endpoint
Server.java 1KB
factory
BeanFactory.java 798B
SayHello.java 261B
impl
SayHelloImpl.java 434B
.project 390B
.classpath 3KB
lib
jetty-continuation-7.5.4.v20111024.jar 20KB
org.springframework.instrument.tomcat-3.1.1.RELEASE.jar 11KB
org.springframework.instrument-3.1.1.RELEASE.jar 7KB
org.springframework.web.struts-3.1.1.RELEASE.jar 31KB
org.springframework.beans-3.1.1.RELEASE.jar 576KB
org.springframework.orm-3.1.1.RELEASE.jar 370KB
jetty-server-7.5.4.v20111024.jar 300KB
jetty-http-7.5.4.v20111024.jar 112KB
org.springframework.context-3.1.1.RELEASE.jar 812KB
org.springframework.asm-3.1.1.RELEASE.jar 52KB
org.springframework.aspects-3.1.1.RELEASE.jar 49KB
jetty-io-7.5.4.v20111024.jar 89KB
neethi-3.0.2.jar 70KB
cxf-2.6.2.jar 6.07MB
org.springframework.core-3.1.1.RELEASE.jar 439KB
org.springframework.jdbc-3.1.1.RELEASE.jar 395KB
xmlschema-core-2.0.3.jar 159KB
geronimo-servlet_2.5_spec-1.1.2.jar 70KB
commons-logging.jar 59KB
geronimo-jaxws_2.2_spec-1.1.jar 59KB
org.springframework.oxm-3.1.1.RELEASE.jar 71KB
jaxb-api-2.2.6.jar 97KB
org.springframework.context.support-3.1.1.RELEASE.jar 105KB
org.springframework.expression-3.1.1.RELEASE.jar 172KB
jetty-util-7.5.4.v20111024.jar 211KB
org.springframework.transaction-3.1.1.RELEASE.jar 241KB
log4j-1.2.15.jar 383KB
org.springframework.aop-3.1.1.RELEASE.jar 324KB
org.springframework.web.portlet-3.1.1.RELEASE.jar 186KB
wsdl4j-1.6.2.jar 145KB
org.springframework.web-3.1.1.RELEASE.jar 532KB
org.springframework.jms-3.1.1.RELEASE.jar 195KB
org.springframework.web.servlet-3.1.1.RELEASE.jar 560KB
junit
test
SpringTest.java 1KB
共 51 条
- 1
莘海学子
- 粉丝: 5
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页