Polishing
This commit is contained in:
parent
92f1754b1e
commit
d7f8fa50be
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -35,10 +35,11 @@ public class ClassWithComplexConstructor {
|
|||
}
|
||||
|
||||
public Dependency getDependency() {
|
||||
return dependency;
|
||||
return this.dependency;
|
||||
}
|
||||
|
||||
public void method() {
|
||||
this.dependency.method();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -34,8 +34,6 @@ public class ObjenesisProxyTests {
|
|||
|
||||
@Test
|
||||
public void appliesAspectToClassWithComplexConstructor() {
|
||||
|
||||
@SuppressWarnings("resource")
|
||||
ApplicationContext context = new ClassPathXmlApplicationContext("ObjenesisProxyTests-context.xml", getClass());
|
||||
|
||||
ClassWithComplexConstructor bean = context.getBean(ClassWithComplexConstructor.class);
|
||||
|
|
@ -45,4 +43,5 @@ public class ObjenesisProxyTests {
|
|||
assertThat(interceptor.getCount(), is(1L));
|
||||
assertThat(bean.getDependency().getValue(), is(1));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue