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中运行这个测试时的结果。
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。
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测试用例,可验证实现的行为。
TDD is a style of coding where the desired behavior or specification is written first in the form of an executable example (typically as a JUnit test case).
TDD是一种编码风格,它先以可执行示例(通常是JUnit测试用例)的形式编写所需的行为或规范。
TDD is a style of coding where the desired behavior or specification is written first in the form of an executable example (typically as a JUnit test case).
TDD是一种编码风格,它先以可执行示例(通常是JUnit测试用例)的形式编写所需的行为或规范。
应用推荐