Package org.springframework.beans

Examples of org.springframework.beans.GenericSetOfIntegerBean


    assertEquals(new Integer(30), gb.getGenericListProperty().get(1));
  }

  public void testGenericallyTypedSetOfIntegerBean() throws Exception {
    XmlBeanFactory bf = new XmlBeanFactory(new ClassPathResource("genericBeanTests.xml", getClass()));
    GenericSetOfIntegerBean gb = (GenericSetOfIntegerBean) bf.getBean("setOfIntegerBean");
    assertEquals(new Integer(10), gb.getGenericProperty().iterator().next());
    assertEquals(new Integer(20), gb.getGenericListProperty().get(0).iterator().next());
    assertEquals(new Integer(30), gb.getGenericListProperty().get(1).iterator().next());
  }
View Full Code Here


    assertEquals(new Integer(30), gb.getGenericListProperty().get(1));
  }

  public void testGenericallyTypedSetOfIntegerBean() throws Exception {
    XmlBeanFactory bf = new XmlBeanFactory(new ClassPathResource("genericBeanTests.xml", getClass()));
    GenericSetOfIntegerBean gb = (GenericSetOfIntegerBean) bf.getBean("setOfIntegerBean");
    assertEquals(new Integer(10), gb.getGenericProperty().iterator().next());
    assertEquals(new Integer(20), gb.getGenericListProperty().get(0).iterator().next());
    assertEquals(new Integer(30), gb.getGenericListProperty().get(1).iterator().next());
  }
View Full Code Here

TOP

Related Classes of org.springframework.beans.GenericSetOfIntegerBean

Copyright © 2018 www.massapicom. 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.