예제 #1
0
 @Test
 public void testNamed2() {
   OrphanBean orphan2 = (OrphanBean) assertBeanExists("orphan2", OrphanBean.class);
   assertBeanPopulated(orphan2, "orphan2");
   ChildBean child2 = (ChildBean) assertContentExists(orphan2.getChild(), ChildBean.class);
   assertBeanPopulated(child2, "child2");
 }
예제 #2
0
 @Test
 public void testNamed1() {
   OrphanBean orphan1 = (OrphanBean) assertBeanExists("orphan1", OrphanBean.class);
   assertBeanPopulated(orphan1, "orphan1");
   ChildBean child1 = (ChildBean) assertContentExists(orphan1.getChild(), ChildBean.class);
   assertBeanPopulated(child1, "child1");
 }
 @Test
 public void testReversedOrder() {
   OrphanBean bean = (OrphanBean) assertBeanExists("orphan2", OrphanBean.class);
   logger.info("Map size: " + bean.getMap().size());
   for (int i = 0; i < 2; ++i) {
     assertMapEntryExists(bean.getMap(), Integer.toString(i + 1), i + 1);
   }
 }
 @Test
 public void testProperties() {
   OrphanBean bean = (OrphanBean) assertBeanExists("checkProps", OrphanBean.class);
   logger.info("Map size: " + bean.getMap().size());
   assertMapEntryExists(bean.getMap(), "0", 0);
 }