![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
a_Little_pumpkin
这个作者很懒,什么都没留下…
展开
-
android上执行UI交互的junit方法
android上执行UI交互的junit方法 可以使用Instrumentation来测试Activity并模拟发送键盘事件交互UI操作 相关介绍如下: JUnit TestCase类 继承自JUnit的TestCase,不能使用Instrumentation框架。但这些类包含访问系统对象(如Context)的方法。使用Context,你可以浏览资源,文件,数据库等等。基类...原创 2015-05-21 11:41:09 · 173 阅读 · 0 评论 -
eclipse搭建web service
Apache Axis2是下一代 Apache Axis,是Axis的后续版本,是新一代的SOAP引擎。 官方网站:http://axis.apache.org/axis2/java/core/index.html 发布和生成客户端代码可以使用Axis的Eclipse插件: Service Archive Wizard - Eclipse Plug-in(用来将服务代码打包成后缀名为....原创 2015-06-11 13:47:01 · 144 阅读 · 0 评论 -
根据wsdl生成soap请求格式
根据wsdl文件如何生成soap请求的格式呢? 使用最方便的工具SoapUI 下载地址:http://sourceforge.net/projects/soapui/files/ [img]http://dl2.iteye.com/upload/attachment/0109/6115/374fc0b7-0216-3042-864e-cdb0448a8bac.jpg[/img] ...原创 2015-06-18 19:32:22 · 5244 阅读 · 2 评论 -
获取包含空格的绝对路径
为了防止java获取xml文件绝对路径时,路径中包含空格,导致取不到的问题。在getResource()后添加toURI()方法既可避免。 [code="java"] String path = Thread.currentThread().getContextClassLoader().getResource( "xxx.xml" ).toURI().getPath(); [/code...原创 2014-09-18 09:29:02 · 204 阅读 · 0 评论 -
android读取plist文件
ios的配置文件是写在.plist里。 那么,如何从android读取.plist文件内容呢? [b]1.需要导入dd-plist.jar 2.读取.plist文件[/b] config.plist [code="xml"] version 1 net http timeout 30 URL http:/...原创 2015-06-30 14:09:40 · 3047 阅读 · 0 评论 -
xml的读取(sax)
读取xml: [code="java"] Document document = XmlUtil.getDocument( filePath ); public static Document getDocument( String filePath ) throws ParserConfigurationException, SAXException, ...原创 2014-12-01 13:54:36 · 144 阅读 · 0 评论 -
list手动排序
对ArrayList根据节点元素rowNo进行排序: [code="java"] Collections.sort( xxxInfoList, new Comparator < xxxDto >() { @Override public int compare( xxxDto s1, xxxDto s2 ) { return s1.getRow...原创 2014-12-01 13:57:45 · 195 阅读 · 0 评论 -
测算对象元素的内存使用量
オブジェクトの使用メモリを測る [url]http://qiita.com/disktnk/items/6d86e162f9ef10da083d[/url]原创 2016-02-17 14:14:56 · 139 阅读 · 0 评论