Examples of DummyBean


Examples of org.springframework.tests.sample.beans.DummyBean

  }

  @Test
  public void typeIndexedRef() throws Exception {
    DefaultListableBeanFactory beanFactory = createFactory("simpleConstructorNamespaceHandlerTests.xml");
    DummyBean typeRef = beanFactory.getBean("indexed-ref", DummyBean.class);

    assertEquals("some-name", typeRef.getName());
    assertEquals(beanFactory.getBean("name-value"), typeRef.getSpouse());
  }
View Full Code Here

Examples of org.springframework.tests.sample.beans.DummyBean

  }

  @Test
  public void constructorWithNameEndingInRef() throws Exception {
    DefaultListableBeanFactory beanFactory = createFactory("simpleConstructorNamespaceHandlerTests.xml");
    DummyBean derivedBean = beanFactory.getBean("beanWithRefConstructorArg", DummyBean.class);
    assertEquals(10, derivedBean.getAge());
    assertEquals("silly name", derivedBean.getName());
  }
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.