1 16 17 package org.springframework.aop.framework; 18 19 import junit.framework.TestCase; 20 21 import org.aopalliance.intercept.MethodInvocation; 22 import org.springframework.beans.ITestBean; 23 24 25 28 public class InvocationCheckExposedInvocationTestBean extends ExposedInvocationTestBean { 29 protected void assertions(MethodInvocation invocation) { 30 TestCase.assertTrue(invocation.getThis() == this); 31 TestCase.assertTrue("Invocation should be on ITestBean: " + invocation.getMethod(), 32 ITestBean.class.isAssignableFrom(invocation.getMethod().getDeclaringClass())); 33 } 34 } | Popular Tags |