Package org.springframework.tests.sample.beans

Examples of org.springframework.tests.sample.beans.TestBean.absquatulate()


    ctx.registerBeanDefinition("config", new RootBeanDefinition(configClass));
    ctx.refresh();

    TestBean testBean = ctx.getBean("testBean", TestBean.class);
    assertThat(testBean.getName(), equalTo("name"));
    testBean.absquatulate();
    assertThat(testBean.getName(), equalTo("advisedName"));
  }

  @Test
  public void aspectAnnotatedConfiguration() {
View Full Code Here


    // Not advised
    advised.exceptional(null);
    assertEquals(0, nop.getCount());

    // This is proxied
    advised.absquatulate();
    assertEquals(1, nop.getCount());
    advised.setAge(newAge);
    assertEquals(newAge, advised.getAge());
    // Only setter fired
    assertEquals(2, nop.getCount());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.