Remove inconsistent spaces
This commit is contained in:
committed by
Juergen Hoeller
parent
8f21cb1a7c
commit
fb898e1727
@@ -260,22 +260,22 @@ public class ProxyFactoryBeanTests {
|
||||
|
||||
// Check it works without AOP
|
||||
SideEffectBean raw = (SideEffectBean) bf.getBean("prototypeTarget");
|
||||
assertEquals(INITIAL_COUNT, raw.getCount() );
|
||||
assertEquals(INITIAL_COUNT, raw.getCount());
|
||||
raw.doWork();
|
||||
assertEquals(INITIAL_COUNT+1, raw.getCount() );
|
||||
assertEquals(INITIAL_COUNT+1, raw.getCount());
|
||||
raw = (SideEffectBean) bf.getBean("prototypeTarget");
|
||||
assertEquals(INITIAL_COUNT, raw.getCount() );
|
||||
assertEquals(INITIAL_COUNT, raw.getCount());
|
||||
|
||||
// Now try with advised instances
|
||||
SideEffectBean prototype2FirstInstance = (SideEffectBean) bf.getBean(beanName);
|
||||
assertEquals(INITIAL_COUNT, prototype2FirstInstance.getCount() );
|
||||
assertEquals(INITIAL_COUNT, prototype2FirstInstance.getCount());
|
||||
prototype2FirstInstance.doWork();
|
||||
assertEquals(INITIAL_COUNT + 1, prototype2FirstInstance.getCount() );
|
||||
assertEquals(INITIAL_COUNT + 1, prototype2FirstInstance.getCount());
|
||||
|
||||
SideEffectBean prototype2SecondInstance = (SideEffectBean) bf.getBean(beanName);
|
||||
assertFalse("Prototypes are not ==", prototype2FirstInstance == prototype2SecondInstance);
|
||||
assertEquals(INITIAL_COUNT, prototype2SecondInstance.getCount() );
|
||||
assertEquals(INITIAL_COUNT + 1, prototype2FirstInstance.getCount() );
|
||||
assertEquals(INITIAL_COUNT, prototype2SecondInstance.getCount());
|
||||
assertEquals(INITIAL_COUNT + 1, prototype2FirstInstance.getCount());
|
||||
|
||||
return prototype2FirstInstance;
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ public class CommonsPool2TargetSourceTests {
|
||||
// Just check that it works--we can't make assumptions
|
||||
// about the count
|
||||
pooled.doWork();
|
||||
//assertEquals(INITIAL_COUNT + 1, apartment.getCount() );
|
||||
//assertEquals(INITIAL_COUNT + 1, apartment.getCount());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -132,7 +132,7 @@ public abstract class AbstractCacheTests<T extends Cache> {
|
||||
String key = createRandomKey();
|
||||
|
||||
assertNull(cache.get(key));
|
||||
Object value = cache.get(key, () -> returnValue );
|
||||
Object value = cache.get(key, () -> returnValue);
|
||||
assertEquals(returnValue, value);
|
||||
assertEquals(value, cache.get(key).get());
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ public class LocalSlsbInvokerInterceptorTests {
|
||||
|
||||
LocalSlsbInvokerInterceptor si = configuredInterceptor(mockContext, jndiName);
|
||||
|
||||
ProxyFactory pf = new ProxyFactory(new Class<?>[] { BusinessMethods.class } );
|
||||
ProxyFactory pf = new ProxyFactory(new Class<?>[] { BusinessMethods.class });
|
||||
pf.addAdvice(si);
|
||||
BusinessMethods target = (BusinessMethods) pf.getProxy();
|
||||
|
||||
@@ -110,7 +110,7 @@ public class LocalSlsbInvokerInterceptorTests {
|
||||
|
||||
LocalSlsbInvokerInterceptor si = configuredInterceptor(mockContext, jndiName);
|
||||
|
||||
ProxyFactory pf = new ProxyFactory(new Class<?>[] { BusinessMethods.class } );
|
||||
ProxyFactory pf = new ProxyFactory(new Class<?>[] { BusinessMethods.class });
|
||||
pf.addAdvice(si);
|
||||
BusinessMethods target = (BusinessMethods) pf.getProxy();
|
||||
|
||||
@@ -129,7 +129,7 @@ public class LocalSlsbInvokerInterceptorTests {
|
||||
|
||||
LocalSlsbInvokerInterceptor si = configuredInterceptor(mockContext, jndiName);
|
||||
|
||||
ProxyFactory pf = new ProxyFactory(new Class<?>[] { LocalInterfaceWithBusinessMethods.class } );
|
||||
ProxyFactory pf = new ProxyFactory(new Class<?>[] { LocalInterfaceWithBusinessMethods.class });
|
||||
pf.addAdvice(si);
|
||||
LocalInterfaceWithBusinessMethods target = (LocalInterfaceWithBusinessMethods) pf.getProxy();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user