简体   繁体   English

JUnit Eclipse插件源代码?

[英]JUnit Eclipse plugin source-code?

I'm looking into writing an Eclipse plugin for FlexUnit and was wondering where I could get the sources for the JUnit Eclipse plugin. 我正在研究为FlexUnit编写Eclipse插件,并想知道我在哪里可以获得JUnit Eclipse插件的源代码。 I checked the JUnit sources at sourceforge but couldn't spot any code that looked like the plugin code. 我在sourceforge检查了JUnit源代码,但是找不到任何看起来像插件代码的代码。

Any idea where this code is available? 知道这个代码可用的地方吗?

You can find it on Eclipse's repository: 您可以在Eclipse的存储库中找到它:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.pde.junit/ http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.pde.junit/

There are now git mirrors of the CVS repositories: 现在有CVS存储库的git镜像:

  1. org.eclipse.jdt.junit: git://dev.eclipse.org/org.eclipse.jdt/org.eclipse.jdt.junit.git org.eclipse.jdt.junit:git://dev.eclipse.org/org.eclipse.jdt/org.eclipse.jdt.junit.git
  2. org.eclipse.jdt.junit.core: git://dev.eclipse.org/org.eclipse.jdt/org.eclipse.jdt.junit.core.git org.eclipse.jdt.junit.core:git://dev.eclipse.org/org.eclipse.jdt/org.eclipse.jdt.junit.core.git
  3. org.eclipse.jdt.junit.runtime: git://dev.eclipse.org/org.eclipse.jdt/org.eclipse.jdt.junit.runtime.git org.eclipse.jdt.junit.runtime:git://dev.eclipse.org/org.eclipse.jdt/org.eclipse.jdt.junit.runtime.git
  4. org.eclipse.jdt.junit4.runtime: git://dev.eclipse.org/org.eclipse.jdt/org.eclipse.jdt.junit4.runtime.git org.eclipse.jdt.junit4.runtime:git://dev.eclipse.org/org.eclipse.jdt/org.eclipse.jdt.junit4.runtime.git

Since you are in all likelihood using Eclipse, there's a far easier way to import it right into your workspace. 由于您很可能使用Eclipse,因此可以更轻松地将其导入工作区。 The source is bundled with your eclipse distribution. 源与您的eclipse发行版捆绑在一起。

Just do 做就是了
File -> Import -> Plug-ins and Fragments 文件 - >导入 - >插件和片段

Keep defaults ("Active target platform", "Select from all plug-ins" & "Projects with source folders" 保留默认值(“活动目标平台”,“从所有插件中选择”和“带有源文件夹的项目”

Hit next, and select the JUnit plugin-packages and hit Finish, and they will be imported as Eclipse projects into your workspace. 点击下一步,选择JUnit插件包并点击Finish,它们将作为Eclipse项目导入您的工作区。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM