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测试程序。
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 测试。
To execute the sample program, run the TestsRulesEngineTest JUnit test found in the demo.test package.
要执行示例程序,运行demo.test 中的 TestsRulesEngineTestJUnit 测试。
应用推荐