这个模式对前一个模式做了补充,只是它测试方面的横切规范和上下文处理而不是横切行为。
This pattern complements the previous one, except that it tests the crosscutting specification and context-handling of the aspect rather than the crosscutting behavior.
它为测试创建上下文。
可以对其进行扩展,以采用以下规则:这些规则基于用户标识或可由规则测试的上下文信息来允许和拒绝操作(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.
应用推荐