Skip to content

Commit

Permalink
Align with naming in ReflectionTestUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Oct 24, 2024
1 parent fe6d914 commit 2d028c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private Object createSpy(String name, Object instance) {
if (StringUtils.hasLength(name)) {
settings.name(name);
}
if (SpringMockResolver.aopAvailable) {
if (SpringMockResolver.springAopPresent) {
settings.verificationStartedListeners(verificationStartedListener);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@
*/
public class SpringMockResolver implements MockResolver {

static final boolean aopAvailable = ClassUtils.isPresent(
static final boolean springAopPresent = ClassUtils.isPresent(
"org.springframework.aop.framework.Advised", SpringMockResolver.class.getClassLoader());


@Override
public Object resolve(Object instance) {
if (aopAvailable) {
if (springAopPresent) {
return getUltimateTargetObject(instance);
}
return instance;
Expand Down

0 comments on commit 2d028c3

Please sign in to comment.