xbeanexampletest.java

来自「Xfire文件 用于开发web service 的一个开源工具 很好用的」· Java 代码 · 共 23 行

JAVA
23
字号
package org.codehaus.xfire.spring.examples;// START SNIPPET: loadimport junit.framework.TestCase;import org.apache.xbean.spring.context.ClassPathXmlApplicationContext;import org.codehaus.xfire.service.ServiceRegistry;public class XBeanExampleTest    extends TestCase{    public void testLoading()        throws Exception    {        ClassPathXmlApplicationContext context =             new ClassPathXmlApplicationContext(new String[] {                "/org/codehaus/xfire/spring/examples/simple.xml",                 "/org/codehaus/xfire/spring/xfire.xml" });        ServiceRegistry reg = (ServiceRegistry) context.getBean("xfire.serviceRegistry");        assertTrue(reg.hasService("Echo"));    }}// END SNIPPET: load

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?