3940414243444546474849
@Test public void decorator() { MyDecoratableClass deco1 = (MyDecoratableClass) factory.getBean("deco1"); assertEquals("hello", deco1.sayHello()); assertTrue(deco1 instanceof MyDecorator); } @Test public void decoratorAttr() {
474849505152535455
@Test public void decoratorAttr() { MyDecoratableClass deco2 = (MyDecoratableClass) factory.getBean("deco2"); assertEquals("hello", deco2.sayHello()); assertTrue(deco2 instanceof MyDecorator); } }