Configure JUnit's Source in Eclipse

来源:互联网 发布:软件毕业设计题目大全 编辑:程序博客网 时间:2024/05/29 13:22
  1. Download this JAR (ftp://ftp.osuosl.org/pub/eclipse/eclipse/updates/3.5/R-3.5-200906111540/plugins/org.junit4.source_4.5.0.v20090423.jar) into youreclipse/plugins directory.

  2. Edit the file source.info in your eclipse/configuration/org.eclipse.equinox.source directory, and add the following line:

    org.junit4.source,4.5.0.v20090423,plugins/org.junit4.source_4.5.0.v20090423.jar,-1,false

  3. Open the file artifacts.xml in your eclipse directory, and add the following fragment:

    <artifact classifier='osgi.bundle' id='org.junit4.source' version='4.5.0.v20090423'>  <properties size='2'>    <property name='artifact.size' value='128389'/>    <property name='download.size' value='128389'/>  </properties></artifact>
  4. If Eclipse is already open, you'll need to restart it for the changes to be detected.


原创粉丝点击