这个模式对前一个模式做了补充,只是它测试方面的横切规范和上下文处理而不是横切行为。
This pattern complements the previous one, except that it tests the crosscutting specification and context-handling of the aspect rather than the crosscutting behavior.
它为测试创建上下文。
当单击Mylyn的自动化ContextTestSuite(该套件运行与已创建的任务上下文结构相关的单元测试)时,您发现这个bug位于一个同事的代码中,而不在您的代码中。
When you click Mylyn's automated context test Suite, which runs unit tests structurally relevant to the context you've created, you discover that the bug is in a colleague's code and not yours.
测试该应用程序时,一定要将Web应用程序上下文根目录设置正确,如bookinfor。
When you test the sample application, make sure you set the Web application context root correctly as bookinfor.
ContextTestSuite被自动更新,以包括当前活动上下文中的所有测试用例。
The Context Test Suite is automatically updated to include all the test cases in the currently active context.
如果遗漏了测试表达式,Contract4J 会根据上下文使用合理的默认设置。
If you omit the test expression, Contract4J uses reasonable defaults, depending on the context.
本文首先解释Mylyn管理上下文的机制,然后介绍兴趣修饰、视图过滤、编辑器管理和上下文驱动的单元测试套件等UI工具。
It starts by explaining Mylyn's mechanisms for managing context and then introduce UI facilities such as interest decorations, view filtering, editor management, and context-driven unit test suites.
AbstractJpaTests类使用了一个后台classloader在运行时增强类,它围绕事务来包装测试方法,同时提供帮助类来声明应用上下文。
JpaTests class USES a shadowing classloader to enhance classes on the fly. It wraps each test method around a transaction and also provides a helper for declaring base Application Contexts.
可以对其进行扩展,以采用以下规则:这些规则基于用户标识或可由规则测试的上下文信息来允许和拒绝操作(put、get、cd,等等)。
It could be extended to employ rules to grant or deny operations (put, get, CD, and so on) based on a user's identity or contextual information that can be tested by rules.
它利用Blueprint容器的功能来管理持久性上下文和全局事务,以确保业务逻辑的开发和单元测试尽可能保持简单。
It leverages the Blueprint container's ability to manage both persistence contexts and global transactions to ensure the business logic remains as simple as possible to develop and unit test.
JUnit视图上下文菜单提供了NewWorkItem操作,以基于所选的JUnit测试创建新工作物件。
The JUnit view context menu provides a new work item action to create a new work item based on the selected JUnit test.
数据——通常,消息数据、关于应用程序流的信息和测试数据也可能放置在应用程序上下文中。
Data — Often, message data, information about application flow, and test data might also be placed in the application context.
例如,如果该节点集在布尔型上下文中使用,唯一需要的处理就是测试它是否是空的。
For example if the node-set is used in a Boolean context, the only processing needed is to test whether it is empty.
在此上下文中,构件可以为任意内容,如需求、设计模型、实现代码或测试用例等。
In this context, artifacts can be anything, such as a requirement, a design model, implementation code, or a test case.
主题图被重新用作测试文档时,可以包含这些回归测试,从而为手动测试提供一个上下文。
When the topic map is repurposed for use as a testing document, these regression tests can be included, providing a context for manual testing.
确保该测试通过构建过程成功运行意味着也能从CI构建的上下文中启动这些相同的测试。
Ensuring that tests run successfully through a build process means these same tests can be kicked off in the context of a CI build too.
这是与测试相关的一种技术惯用模式,我可在多个上下文中轻松预见该测试的有用性。
This is a technical idiomatic pattern relating to testing that I can easily anticipate needing in lots of contexts.
我编写处理这些非正式解析任务的程序的方法总是有点象大杂烩,其中包括定制状态机、正则表达式以及上下文驱动的字符串测试。
The way I have programmed these informal parsing tasks has always been somewhat of a hodgepodge of custom state-machines, regular expressions, and context-driven string tests.
在执行构建时,应该经常运行它们,不管是在机器上,还是在CI环境的上下文中(这意味着,代码一经签入SCM 环境,就要运行单元测试)。
You should always run them when you execute a build, whether on your machine or in the context of a CI environment (meaning you should run them anytime code is checked into an SCM system).
在寻找测试时,nose跟踪记录找到测试的上下文。
When discovering tests, nose keeps up with the context in which it found them.
通常选中所有TargetPlatform插件;换句话说,应使用基本产品并在开发环境的上下文中添加一些插件以供测试使用。
Typically, you leave all the Target Platform plug-ins selected; that is, you want to use the base product and add a few plug-ins within the context of your development environment for testing.
由于JUnit本身用一个setUp和一个tearDown方法装饰所有测试样例,所以要在测试场景的整个上下文中考虑执行时间。
Because JUnit itself decorates all test cases with a setUp and a tearDown method, execution times must be considered within the overall context of a test scenario.
在CppUnit上下文中,fixture或TestFixture用于为各个测试提供简洁的设置和退出例程。
A fixture, or a TestFixture in the CppUnit context, is meant to provide clean setup and exit routines for individual tests.
Spring的上下文使测试更加容易,因为您可以通过不同方法为生产和测试配置应用程序。
Spring's context makes testing much easier because you can configure applications in different ways for production and testing.
可以使用XPath指定测试条件,还可以指定应用测试条件的上下文。
With XPath, you can specify test conditions, as well as specify a context in which the test condition would apply.
你可能会为新的上下文测试申请分割模式。
You can apply segmentation modeling to the new contextual tests just as you would with search.
在此上下文中的相关测试是跨越多个图层和有时层的集成测试的排序。
Relevant tests in this context are sort of integration tests that span multiple layers and sometimes tiers.
在此上下文中的相关测试是跨越多个图层和有时层的集成测试的排序。
Relevant tests in this context are sort of integration tests that span multiple layers and sometimes tiers.
应用推荐