博客主机

毕设告休5天,先考试

前景: 修改instrument使用thread而不是vm,加快速度 修改testcasemodify仅仅修改相关类,需要研究一下junit或者使用soot查看resolveclass,加快速度 从xml文件中读取suspicious文件,构造新的problems view,并根据constructure.xml结构化视图,添加marker 增加副产品中的coverage分析。 ----------------- 以上需要在中期前完成 1月1号开始写报告和做PPT,10号中期答辩。 增加cfg中的分析浏览。 (fun...

Get main class name

1 2 3 4 5 6 7 8 9 Map a = Thread.getAllStackTraces(); for(Thread t : a.keySet()){ if ("main".equals(t.getName())){ StackTraceElement[] stack = t.getStackTrace (); StackTraceElement main = stack[stack.length - 1]; String mainClass = main.getClassName (&...

项目中counter打印的几种方法思考

项目中需要在class文件中加入probe(常见是使用静态变量保存),那么在什么时候dump out? 首先由于是测试程序,被测试的程序本身就可能会随时出错,所以该在何处dump profile 信息呢。在由别的程序调用时我们可以用try来捕获所有异常,在finally中收集信息。这就要求是在同一个jvm中。由于java中没有析构函数的说法,而garbage清理对象的时间我们也无法确定。在项目过程中,在命令行和测试底层功能时我是...

Why does JUnit only report the first failure in a single test?

Why does JUnit only report the first failure in a single test? (Submitted by: J. B. Rainsberger) Reporting multiple failures in a single test is generally a sign that the test does too much, compared to what a unit test ought to do. Usually this means either that the test is really a functional/acceptance/customer test or, if it is ...

eclipse plugin开发过程中也有几个心得

另外在实践eclipse plugin开发过程中也有几个心得: 1、如果开发plugin,所有的依赖库都要包含到 Plug-in Dependencies 中;而不能只是引入到工程中。2、如何输出到console:MessageConsole mc=new MessageConsole("****",null);IConsole[] cs=new IConsole[1];cs[0]=mc;ConsolePlugin.getDefault().getConsoleManager().addConsoles(cs);mc.activate();PrintStream out=new PrintStream( mc.newOutputStre...

将Subclipse的中文变成英文

Q: 这几天开始搭建svn,同时我也给我的eclipse安装了Subclipse插件,可是Subclipse对国际化的支援很好,可能是根据操作系统来选 择语言,所以呢,我的英文版的eclipse就有了一个中文版的subclipse,我是想换成英文的啦,可是捣鼓了半天没有结果。我没有发现那边可以设置,我把plugin目录下的....zh.properties删除或者换成英文都试过了,还是不行。哪位帮助一下 A: 设置eclipse启动参数:-clean -nl en_U...

每个项目最重要的十件事

这是我在做每个项目时的明细表,我强烈建议您也这样做。原因是:(1)新的开发者很快的就能够加快这个项目的进程,(2)用户能够容易的安装你的产品,而且也很容易去维护。 1.版本控制:应该说您需要有某种形式的版本控制系统。如今的版本控制系统应该选择Subversion ,您只需要一台服务器主机。开放源代码的项目时,我使用code.google.com ,商业项目时我使用Hosted-Projects 。Hosted-Projects,每...

Lunuo Plugin开发总结(一)

作为新手入行开发eclipse插件,到现在为止初步了解了eclipse,osgi,RCP,SWT/JFace等一些知识。在这过程中,给我最大的帮助的是这本《Contributing to eclipse Principle, Patterns, and Plug-Ins》,这本书的作者是大名鼎鼎的Erich Gamma,JUnit的开发者,在书中demo的开发就是JUnit-Plugin的开发,作者用了Test Driven Development 和Pattern Design的观点和方法。让我在学习的过程中深深为精彩的开发过...

Eclipse 3.4 Hidden Treasures

Eclipse 3.4 "Ganymede" will be released in the upcoming days. I've been working with the RC builds for some time now and I like it. Eclipse 3.4 is a better IDE and a more robust platform than its' predecessor. In this post, I've gathered some new features which I like and may be "off the beaten path". Rich Hovers This is not a hidden feature, but I had to mention it. The Jav...
Copyright © 小小的数据技术梦想 保留所有权利.   Theme  Ality 浙ICP备12043346号-1

用户登录

分享到: