1.在工程中右击
Build Path,Add libraries
然后就可以运行对应的方法了,不需要main方法调用了
eclipse中junit简单使用
原文:http://www.cnblogs.com/shiwenhu/p/7435182.html