Importing existing JUnit test cases.
导入已有的JUnit测试用例。
Repeat Steps 5 and 6 to rerun the JUnit test.
重复第 5步和第 5 步,重新运行JUnit 测试。
Generating JUnit test cases for your application.
为应用程序生成JUnit测试用例。
Creating the JUnit test cases for the application.
为这个应用软件创建JUnit测试用例。
Select "JUnit test into component test project" as the import source.
选择“JUnit testintocomponent testproject ”作为导入源。
Define the location of the CruiseControl logs and log the JUnit test results.
定义CruiseControl日志的位置并记录JUnit测试结果。
Therefore, you can reuse the underlying JUnit test cases for your EJB unit tests.
因此,您可以为您的EJB单元测试重新使用基本的JUnit测试用例。
To test the above data maps, you will usually write a couple of JUnit test cases.
要测试上述数据映射,您通常要编写两个JUnit测试用例。
If you use JUnit, the all-important question is, Do I have to stop writing JUnit test cases?
如果您使用的是JUnit,则最重要问题是:必须停止编写JUnit测试用例吗?
The first section of the test case is shown below. This is a simple JUnit test written in groovy.
下面将介绍测试用例的第一部分。
The first step is to create a JUnit test and appropriately configure JDepend, as shown in Listing 2.
第一步是创建一个JUnit测试并且对JDepend做相应配置,如清单2所示。
Download JUnitPerf: a collection of JUnit test decorators used to measure performance and scalability.
下载JUnitPerf:一系列用于测量性能和可伸缩性的JUnit测试装饰器。
Execute these steps by launching the JUnit test, instructions for which can be found in Part 1. In summary.
通过启动JUnit测试执行这些步骤,该测试的说明可在第1部分中找到。
We will first create a JUnit test class, add a single test to the class, and then, finally, execute the test.
我们首先创建JUnit测试类,将单个测试添加到该类,最后执行该测试。
This step is similar to running pre-deployment unit tests, except for the nature of the JUnit test cases to run.
此步骤与运行部署前单元测试类似,不过 JUnit测试用例的本质不同。
As far as the build automation procedure is concerned, this step is just an invocation of a set of JUnit test cases.
就构建自动化过程而言,此步骤只是调用一组JUnit测试用例。
The JUnit view context menu provides a new work item action to create a new work item based on the selected JUnit test.
JUnit视图上下文菜单提供了NewWorkItem操作,以基于所选的JUnit测试创建新工作物件。
Listing 2 gives a simple JUnit test case for this class, and Figure 1 shows the results when I run this test in eclipse.
清单2给出了针对这个类的一个简单的JUnit测试用例,图1展示了我在Eclipse中运行这个测试时的结果。
After this addition, my JUnit test results are very different, as shown in Figure 2 — I now have four JUnit test failures!
添加了这个方法后,JUnit测试的结果就截然不同了,如图2所示——现在发现了4处JUnit测试失败!
In the example in this article, both the portlet application and the JUnit test cases project reside in the same workspace.
在本文的示例中,portlet应用程序和JUnit测试用例项目都位于同一工作空间。
In order to make your test case runnable from WebSphere Studio, you need to follow the basic JUnit test case programming API.
为了让你的测试案例能在WebSphereStudio上运行,您需要遵循基本的JUnit测试案例编程api。
Change environments all together, going from JUnit test to Portlet for example, without having to change your flow definitions.
和环境一起改变而不需要修改你的流转定义,比如从JUnit测试到Portlet。
In addition to the log file entries that CruiseControl creates, you also want to log the test results from the JUnit test cases.
除了CruiseControl创建的日志文件条目以外,您还可能希望记录JUnit测试用例产生的测试结果。
The first option is to write normal JUnit test cases just as you've been doing all along by extending JUnit's commendable TestCase.
第一个选择是编写普通的JUnit测试用例,就像以前一直做的那样,扩展JUnit令人称赞的TestCase。
It is also invoked by the JUnit test class com.ibm.etools.egl.ui.wizard.EGLWizardUtilitiesTest that is provided with the sample code.
同时它也被Junit测试类com . ibm . etools . egl . ui . wizard . EGLWizardUtilitiesTest调用,随样品代码一起提供。
For example, there's a JUnit ruleset that finds common problems (such as using assert(x==null) vs assertNull(x)) in JUnit test suites.
例如,JUnit规则集用来在JUnit测试套件中寻找常见的问题(如使用了assert(x==null)而不是assertNull(x))等。
Listing 4 is an updated JUnit test case that adds a handful of additional test cases in an attempt to fully exercise hierarchybuilder.
清单4是一个更新过的JUnit测试案例,增加了一些附加测试案例,以试图完全执行hierarchybuilder。
You can run tests on remote machines or import existing JUnit test cases into the Testing and Performance Tools platform (TPTP) test case.
您可以在远程的机器上运行测试,或者将现有的JUnit测试案例导入到TestingandPerformanceToolsplatform(TPTP)测试案例中。
The end result is an implementation of the business logic required and a JUnit test case that can verify the behavior of the implementation.
最终的结果是实现了必要的业务逻辑和JUnit测试用例,可验证实现的行为。
After you create the sample application, you will create an application client project that contains the JUnit test cases for the sample application.
当您创建一个应用软件样例后,您还将创建一个包含应用软件样本JUnit测试用例的应用软件客户端项目。
应用推荐