⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 customannotationstest.java

📁 Xfire文件 用于开发web service 的一个开源工具 很好用的
💻 JAVA
字号:
package org.codehaus.xfire.annotations;

import java.util.List;
import java.util.Map;

import org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations;
import org.codehaus.xfire.soap.SoapConstants;

import junit.framework.TestCase;

/**
 * @author tomeks
 *
 */
public class CustomAnnotationsTest extends TestCase {
	public void testAnnotation() throws Exception {
		Jsr181WebAnnotations annotations = new Jsr181WebAnnotations();
		Map properties = annotations
				.getServiceProperties(CustomAnnotations.class);
		
		assertTrue(properties.get(SoapConstants.MTOM_ENABLED)!=null);
		assertTrue(properties.get("key1")!=null);
		assertTrue(properties.get("singleKey")!=null);
//		assertTrue(properties.get("listKey")!=null);
//		assertTrue(properties.get("listKey") instanceof List);
	}
	
	
}

⌨️ 快捷键说明

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