How to create JUnit test cases?
如何创建JUnit测试用例?
Listing 3. JUnit test for deposit method.
JUnit的deposit方法测试。
Create JUnit test cases for the application.
为这个应用软件创建JUnit测试用例。
The JUnit test should complete with no errors.
JUnit测试应无错误地完成。
JUnit test: running the sample code using JUnit.
Junit测试:利用Junit运行样本代码。
Follow these steps to create the JUnit test case.
按照以下步骤来创建JUnit测试用例。
I have written a JUnit test for the parser as well.
我还编写了用于该解析器的JUnit测试程序。
Examining and running the JUnit test with zero.test.
检查并使用zero . test运行JUnit测试。
Running the JUnit test cases to test the sample application
运行这个JUnit测试用例来测试这个样本应用软件
Note that all JUnit test methods must begin with the word "test."
注意到所有JUnit测试方法必须以单词“test”开头。
The test above was run as a simple JUnit test without code coverage.
以上测试是作为简单的JUnit测试运行的,没有代码覆盖。
The results of the JUnit test will appear in the JUnit view as normal.
JUnit测试的结果会正常显示在 JUnit视图中。
In this section, we will add JUnit test cases for the sample application.
在这个部分中,我们将为这个样本应用软件添加JUnit测试用例。
In other words, use a JUnit test case to capture the scenario requirement.
换句话说,使用JUnit测试用例来捕捉场景需求。
To test the portlet's function, the first step is to create JUnit test cases.
为测试portlet的功能,第一步是要创建JUnit测试用例。
At minimum, a JUnit test case has the common structure shown in code Listing 1.
最低限度,一个JUnit测试用例有一个如列表1代码中所示的常用结构。
To execute the sample program, run the TestsRulesEngineTest JUnit test found in the demo.test package.
要执行示例程序,运行demo.test 中的 TestsRulesEngineTestJUnit 测试。
However, a friend suggested that I test JUnit.
然而,一位朋友建议我测试一下JUnit。
For JUnit, it was a test case.
对于JUnit,它是一个测试用例。
Figure 2: JUnit view of results from the first test run.
图2:第一次运行测试后的结果的JUnit视图。
JUnit provides an additional mechanism to determine the success or failure of a test case.
JUnit提供了一个额外的决定测试用例成功或者失败的机制。
Unit test their software, using tools such as JUnit.
使用工具如JUnit对软件进行单元测试。
The JUnit view then shows the result of running the test (Figure 3).
JUnit视图然后显示运行测试的结果(图3)。
The JUnit view then shows the result of running the test (Figure 13).
JUnit视图然后显示运行测试的结果(图13)。
Instead, they offer JUnit assertions to both signal the failure and unwind the test.
相反,他们提供了JUnit断言来通知失效或者展开测试。
JUnit单元测试插件。
I use Ant to build the projects, and JUnit to run the unit test.
我用Ant构建项目,并用JUnit运行单元测试。
I use Ant to build the projects, and JUnit to run the unit test.
我用Ant构建项目,并用JUnit运行单元测试。
应用推荐