コード例 #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");
 }
コード例 #3
0
 @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);
   }
 }
コード例 #4
0
 @Test
 public void testProperties() {
   OrphanBean bean = (OrphanBean) assertBeanExists("checkProps", OrphanBean.class);
   logger.info("Map size: " + bean.getMap().size());
   assertMapEntryExists(bean.getMap(), "0", 0);
 }