在一个连接点上配置测试有两种方法。
There are two ways to approach configuring tests at a join point.
如何与连接点上的其他测试类型、其他通知、运行该连接点的其他代码交互呢?
How does this interact with other kinds of tests at the join point, with other advice at the join point, and with any code that runs the join point?
最后,不变条件测试使用around建议,在该建议中,在连接点执行之前和之后都计算测试,同时具有前面提到过的例外。
Finally, invariant tests use around advice, where the tests are evaluated both before and after join point execution with the exceptions noted previously.
应用推荐