|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2013 the original author or authors. |
|
|
|
* Copyright 2002-2017 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -74,19 +74,19 @@ public class AroundAdviceBindingTests { |
|
|
|
@Test |
|
|
|
@Test |
|
|
|
public void testOneObjectArgBoundToTarget() { |
|
|
|
public void testOneObjectArgBoundToTarget() { |
|
|
|
testBeanProxy.getAge(); |
|
|
|
testBeanProxy.getAge(); |
|
|
|
verify(mockCollaborator).oneObjectArg(this.testBeanTarget);; |
|
|
|
verify(mockCollaborator).oneObjectArg(this.testBeanTarget); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|
public void testOneIntAndOneObjectArgs() { |
|
|
|
public void testOneIntAndOneObjectArgs() { |
|
|
|
testBeanProxy.setAge(5); |
|
|
|
testBeanProxy.setAge(5); |
|
|
|
verify(mockCollaborator).oneIntAndOneObject(5, this.testBeanProxy);; |
|
|
|
verify(mockCollaborator).oneIntAndOneObject(5, this.testBeanProxy); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|
public void testJustJoinPoint() { |
|
|
|
public void testJustJoinPoint() { |
|
|
|
testBeanProxy.getAge(); |
|
|
|
testBeanProxy.getAge(); |
|
|
|
verify(mockCollaborator).justJoinPoint("getAge");; |
|
|
|
verify(mockCollaborator).justJoinPoint("getAge"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|