• To refine your unit test further, you can assert that the validation failed for a specific constraint on a specific field, as shown in Listing 8.

    要进一步细化单元测试,您可以断言验证会因为特定字段上的特定约束而失败,如清单8所示。

    youdao

  • This notifies the validation framework that any unit declared by this package should be validated by this domain validator.

    这将会通知该包所声明的确认框架应该由域确认器来确认。

    youdao

  • The second option is to mock out the validation behavior and leave the test in the unit directory.

    第二个选择是模拟验证行为并将测试类保留在单元目录中。

    youdao

  • Testing the form validation can also be done in the unit test (Listing 19 shows the form validation test code).

    表单验证的测试也可以在单元测试中完成(清单19展示了表单验证的测试代码)。

    youdao

  • To mock out the Grails validation in a unit test, add the mockForConstraintsTests method, as shown in Listing 6.

    要在单元测试中模拟Grails验证,添加mockforconstraintstests方法,如清单6所示。

    youdao

  • For example, you definitely do want to build unit tests for all of the controller logic and all of the validation logic in your application.

    例如,您肯定希望能为应用系统中的所有控制器逻辑和验证逻辑创建单元测试。

    youdao

  • If you already have code that performs validation, you can use it in a database unit test instead of using test conditions.

    如果已有执行验证的代码,则可以将其用于数据库单元测试,而不使用测试条件。

    youdao

  • In computer programming, unit testing is a software verification and validation method in which a programmer tests if individual units of source code are fit for use.

    在计算机科学中,单元测试是一个有程序员测试源代码的个体单元是否适合使用的软件检测和验证方法。

    youdao

  • To keep this demo simple, we will not be covering unit testing, input validation, error handling, data encapsulation, authentication, routing, or any other facets of a well designed MVC application.

    为了简洁,不会牵涉到单元测试,输入验证,错误处理,数据封装,审核,路由或任何MVC设计有关的细节。

    youdao

  • Do different database unit tests need to access different database connections for test execution or test validation?

    不同的数据库单元测试是否需要访问不同的数据库连接来执行或验证测试?

    youdao

  • Do different database unit tests need to access different database connections for test execution or test validation?

    不同的数据库单元测试是否需要访问不同的数据库连接来执行或验证测试?

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定