自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

鑫的专栏

点滴记录

  • 博客(8)
  • 资源 (17)
  • 收藏
  • 关注

原创 android studio 使用问题2

常用插件一、gsonFormat 将json字符串转成bean alt+insert可看到 二、parcelable code generator 生成parceable接口代码,很方便 使用方法与gsonformat相同代码排序eclipse下有sort member功能,可将代码中类,方法 变量排序 as下 通过可以进行设置 目前还不是很清楚,在structure下删除方法变

2015-12-23 11:38:43 541

原创 android stuiod 使用问题汇总1

1、Duplicate files copied in APK META-INF/NOTICE.txtcom.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/NOTIC

2015-12-11 14:34:12 1960

原创 android studio 导入eclipse项目

导入项目android studio 1.5 菜单 file->new project->import project 选中eclipse下的项目,即可, 不是eclipse的工作目录,是项目的根目录,有项目依赖会自动导入的。 一路引导会将文件复制到新的目录下 as ide的新目录 eclipse的工作空间 可选 http://jingyan.baidu.com/a

2015-12-11 12:43:43 897

原创 从git中 从所有提交记录中删除文件

git filter-branch将之前提交过的文件从版本中删除git filter-branch --help解释 git-filter-branch - Rewrite branches 语法git filter-branch [--env-filter <command>] [--tree-filter <command>] [--index-filter <command>] [--p

2015-12-04 16:58:36 1806

原创 java 多线程

synchronized如果synchronized加在一个类的普通方法上,那么相当于synchronized(this)。 如果synchronized加载一个类的静态方法上,那么相当于synchronized(Class对象)。

2015-12-04 10:45:35 1280

转载 larvavel 使用config下的配置文件

读取 Config::get('app.timezone')app.timezone 表示config下app.php 中的timezome字段值写入Config::set('database.default', 'sqlite');在程序运行时设置的配置值只在本次请求中有效,不会对以后的请求造成影响

2015-12-03 17:35:30 994

转载 android 使用AccessibilityService 自动安装应用

AccessibilityService为一个响应用户发送AccessibilityEvent事件的服务类,主要用作对于一些辅助功能的实现中。对于某些方面有缺陷的人群,可以通过辅助功能反馈给用户。使用1、在项目中配置service <service android:name=".MyAccessibilityService" android:label

2015-12-03 10:57:21 3894

原创 android 控制启动图标显示

package com.example.dmeoicon;import android.content.ComponentName; import android.content.Context; import android.content.pm.PackageManager;public class ProcessIconUtils { /** * @param context

2015-12-01 16:24:06 780

wekeroad-ink_vs2008.vssettings

wekeroad-ink_vs2008.vssettings

2014-06-18

eclipse 主题 theme-21.

eclipse 主题 theme-21.

2014-06-18

MinaSeria window

MinaSeria MinaSeria MinaSeria

2014-06-18

ksoap2_android androidwebservice soap客户端解析

ksoap2_android androidwebservice soap客户端解析

2013-07-26

JPype-0.5.4.2.win32-py2.6.

python调用java所需的工具

2013-05-27

jython-installer-2.7-b1.zip

jython-installer-2.7-b1.jar java调用python类包 包括所有docs等

2013-05-27

jython-2.7-b1.jar

jython java调用python的jar

2013-05-27

java io

java io 分类图

2012-12-18

查看源代码的Source.Insight.3.5.0064.

查看源代码的Source.Insight.3.5.0064.

2012-12-06

css html编译工具TopStyle v4.0.6.6 with Crack

css html编译工具TopStyle v4.0.6.6 with Crack

2012-12-06

网页设计css工具及api

网页设计css工具及api

2012-11-22

jee5jse5帮助中文版第一

jee5jse5帮助中文版第一jee5jse5帮助中文版第一jee5jse5帮助中文版第一

2011-07-13

jee5jse5帮助中文版第一

jee5jse5帮助中文版第一jee5jse5帮助中文版第一jee5jse5帮助中文版第一

2011-07-13

jee5+jse5帮助中文版-1

jee5+jse5帮助中文版 最新整理 保证好用

2011-07-12

ant eclipse

本教程所讲述的内容 在本教程中,您将学习 Ant 这个 Java TM 项目生成工具。由于其灵活性和易用性,Ant 很快在 Java 开发人员中流行开来,因此您有必要了解关于它的更多信息。 在继续学习本教程之前,你不需要具备先前的 Ant 经验或知识。我们将首先查看 Ant 生成文件 (build file)的基本结构,并学习如何调用这个工具。我们将逐步完成为一个简单 Java 项目编 写生成文件的步骤,然后考察 Ant 的其他一些有用功能,包括文件系统操作和模式匹配。最后编写 一个扩展 Ant 功能的自己的 Java 类来结束本教程。 在学习本教程的过程中,我们将同时展示如何从命令行以及从其他开放源代码 Eclipse IDE 运行 Ant。试验本教程中的例子不需要同时具备这两种环境;您可以选择其一,甚至选择某种不同的开发 环境,只要该环境支持 Ant。如果选择从命令行使用 Ant,并且 Ant 还没有安装到机器上,您需要 遵循 Ant 主页上的安装说明。相反,如果决定仅使用 Eclipse 环境,您不需要单独安装 Ant,因 为 Eclipse 已经包括了它。如果还没有 Eclipse,您可以从 Eclipse.org下载 Eclipse。

2011-07-04

JUnit在Eclipse中的使用.pdf

Eclipse 快速上手指南之使用 JUnit 在 Eclipse中使用 JUnit 测试对于保证软件开发质量有着非常重要的作用,单元测试更是必不可少,JUnit 是一 个非常强大的单元测试包,可以对一个/多个类的单个/多个方法测试,还可以将不同的 TestCase组合成 TestSuit,使测试任务自动化。Eclipse同样集成了 JUnit,可以非常方便 地编写 TestCase。 我们创建一个 Java工程,添加一个 example.Hello 类,首先我们给 Hello类添加一个 abs()方法,作用是返回绝对值:

2011-07-04

JUnit与Ant教程

* 米小國 * 奇想世界☆.╯ Java OpenSource Memorandum - 自動化建構與測試 - Ant 結合 JUnit -------------------------------------------------------------------------------- caterpillar - 星期六 五月 08, 2004 9:55 pm 文章主題: 自動化建構與測試 - Ant 結合 JUnit -------------------------------------------------------------------------------- Ant可以進行自動化建構,而JUnit可以進行自動化測試,Ant可以與JUnit結合,使得自動化的建構與測變得可行。 我們使用之前的測試案例來示範如何將Ant結合JUnit以進行自動化建構與測試,之前的測試案例是: http://www.caterpillar.onlyfun.net/phpBB2/viewtopic.php?t=981 Ant使用<junit>任務來設定JUnit測試,下面直接示範一個簡單的例子: 代碼: <project name="autobuildtest" default="test"> <target name="setProperties"> <property name="src.dir" value="src"/> <property name="classes.dir" value="classes"/> </target> <target name="prepareDir" depends="setProperties"> <delete dir="${classes.dir}"/> <mkdir dir="${classes.dir}"/> </target> <target name="compile" depends="prepareDir"> <javac srcdir="./src" destdir="${classes.dir}"/> </target> <target name="test" depends="compile"> <junit printsummary="yes"> <test name="ObjectIOManagerTest"/> <classpath> <pathelement location="${classes.dir}"/> </classpath> </junit> </target> </project> printsummary屬性會將測試的結果簡單的顯示出來,<test>的name屬性是設定要進行測試的案例類別,Ant建構與調用JUnit進行測試的訊息如下: 代碼: Buildfile: build.xml setProperties: prepareDir: [mkdir] Created dir: D:\temp\classes compile: [javac] Compiling 3 source files to D:\temp\classes test: [junit] Running ObjectIOManagerTest [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.14 sec BUILD SUCCESSFUL Total time: 7 seconds 您也可以將JUnit的測試過程在Ant建構的過程訊息中顯示出來,只要加入<formatter>標籤設定即可: 代碼: <project name="autobuildtest" default="test"> <target name="setProperties"> <property name="src.dir" value="src"/> <property name="classes.dir" value="classes"/> </target> <target name="prepareDir" depends="setProperties"> <delete dir="${classes.dir}"/> <mkdir dir="${classes.dir}"/> </target> <target name="compile" depends="prepareDir"> <javac srcdir="./src" destdir="${classes.dir}"/> </target> <target name="test" depends="compile"> <junit printsummary="yes"> <formatter type="plain" usefile="false"/> <test name="ObjectIOManagerTest"/> <classpath> <pathelement location="${classes.dir}"/> </classpath> </junit> </target> </project> Ant建構與調用JUnit進行測試的訊息如下: 代碼: Buildfile: build.xml setProperties: prepareDir: [mkdir] Created dir: D:\temp\classes compile: [javac] Compiling 3 source files to D:\temp\classes test: [junit] Running ObjectIOManagerTest [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.18 sec [junit] Testsuite: ObjectIOManagerTest [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.18 sec [junit] ------------- Standard Output --------------- [junit] Writing data to test.dat ... done [junit] Reading data from test.dat ... done [junit] Writing data to test.dat ... done [junit] Reading data from test.dat ... done [junit] ------------- ---------------- --------------- [junit] Testcase: testSimpleObjectIO took 0.09 sec [junit] Testcase: testStudentObjectIO took 0.08 sec BUILD SUCCESSFUL Total time: 8 seconds <formatter>標籤還可以設定將測試的結果,以XML文件儲存下來,一個撰寫的例子如下,它將測試的結果儲存至report目錄中,檔案名稱為TEST-*.xml,*是您的測試案例類別名稱: 代碼: <project name="autobuildtest" default="test"> <target name="setProperties"> <property name="src.dir" value="src"/> <property name="classes.dir" value="classes"/> <property name="report.dir" value="report"/> </target> <target name="prepareDir" depends="setProperties"> <delete dir="${report.dir}"/> <delete dir="${classes.dir}"/> <mkdir dir="${report.dir}"/> <mkdir dir="${classes.dir}"/> </target> <target name="compile" depends="prepareDir"> <javac srcdir="./src" destdir="${classes.dir}"/> </target> <target name="test" depends="compile"> <junit printsummary="yes"> <formatter type="xml"/> <test name="ObjectIOManagerTest" todir="${report.dir}"/> <classpath> <pathelement location="${classes.dir}"/> </classpath> </junit> </target> </project> 您也可以將測試結果所產生的XML文件轉換為HTML文件,使用Ant可以直接幫您完成這個工作,<junitreport>標籤使用XSLT將XML文件轉換為HTML文件,一個撰寫的例子如下所示: 代碼: <project name="autobuildtest" default="report"> <target name="setProperties"> <property name="src.dir" value="src"/> <property name="classes.dir" value="classes"/> <property name="report.dir" value="report"/> </target> <target name="prepareDir" depends="setProperties"> <delete dir="${report.dir}"/> <delete dir="${classes.dir}"/> <mkdir dir="${report.dir}"/> <mkdir dir="${classes.dir}"/> </target> <target name="compile" depends="prepareDir"> <javac srcdir="./src" destdir="${classes.dir}"/> </target> <target name="test" depends="compile"> <junit printsummary="yes"> <formatter type="xml"/> <test name="ObjectIOManagerTest" todir="${report.dir}"/> <classpath> <pathelement location="${classes.dir}"/> </classpath> </junit> </target> <target name="report" depends="test"> <junitreport todir="${report.dir}"> <fileset dir="${report.dir}"> <include name="TEST-*.xml"/> </fileset> <report format="frames" todir="${report.dir}/html"/> </junitreport> </target> </project> <include>設定搜尋TEST-*.xml文件,將之轉換為HTML文件,而最後的結果我們設定儲存至report/html/目錄下,format屬性中我們設定HTML文件具有框架,如果不設定這個屬性則HTML報告文件就不具有框架。 -------------------------------------------------------------------------------- 所有的時間均為 Powered by phpBB 2.0 .0.4 © 2001 phpBB Group

2011-07-04

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除