Last but not least, the XSL: if instruction executes only if its test succeeds.
最后但并非最不重要的一条指令就是xsl: if,它只在其测试成功的情况下才会执行。
The test verifies that the advice in the aspect succeeds by either looking for a known side-effect of the advice or by using a mock object.
这个测试通过查找建议的已知副作用或者使用一个mock对象来验证方面中的建议是否成功。
应用推荐