For JUnit, it was a test case.
对于JUnit,它是一个测试用例。
How to create JUnit test cases?
如何创建JUnit测试用例?
Composite is a pattern in JUnit.
组合是JUNIT中使用的一种模式。
You can still develop JUnit tests.
您仍可以开发JUnit测试。
However, JUnit is just a tool.
然而,JUnit仅仅是一个工具而已。
And give it the name JUnit 0.1.
给它起名字为JUnit 0.1。
JUnit单元测试插件。
创建一个JUnit项目。
这与JUnit 很相似,对吗?
Listing 3. JUnit test for deposit method.
JUnit的deposit方法测试。
Create JUnit test cases for the application.
为这个应用软件创建JUnit测试用例。
Figure 3: JUnit view after modifying the code.
图3:修改代码之后的JUnit视图。
The JUnit test should complete with no errors.
JUnit测试应无错误地完成。
However, a friend suggested that I test JUnit.
然而,一位朋友建议我测试一下JUnit。
I have written a JUnit test for the parser as well.
我还编写了用于该解析器的JUnit测试程序。
Note that this class isn't very JUnit-specific.
请注意此类并不是非常特定于JUnit 的。
Unit test their software, using tools such as JUnit.
使用工具如JUnit对软件进行单元测试。
We should be able to run the tests similar to Junit.
我们应当能够运行类似于Junit的测试。
Examining and running the JUnit test with zero.test.
检查并使用zero . test运行JUnit测试。
JUnit test: running the sample code using JUnit.
Junit测试:利用Junit运行样本代码。
Follow these steps to create the JUnit test case.
按照以下步骤来创建JUnit测试用例。
Figure 2: JUnit view of results from the first test run.
图2:第一次运行测试后的结果的JUnit视图。
In fact, this is exactly what JUnit was designed for.
事实上,这也正是JUnit设计的确切目的所在。
Running the JUnit test cases to test the sample application
运行这个JUnit测试用例来测试这个样本应用软件
This means the build will not fail even if any JUnit tests fail.
这意味着即使任何JUnit测试是失败的,构建也不会失败。
Note that all JUnit test methods must begin with the word "test."
注意到所有JUnit测试方法必须以单词“test”开头。
Select JUnit in the list of possible Configurations and click New.
在可能的配置列表中,选择JUnit,并单击new。
Certainly, there is still value in JUnit even in the portal world.
当然,即使在portal世界里,JUnit仍然有价值。
Make sure the JUnit Project Area is selected and press Finish.
确保选择Prelude项目区域并单击Finish。
The test above was run as a simple JUnit test without code coverage.
以上测试是作为简单的JUnit测试运行的,没有代码覆盖。
应用推荐