Package com.firefly.core

Examples of com.firefly.core.ApplicationContext


    Assert.assertThat((Long) obj2[1], is(10000000000L));
  }

  @Test(expected = ClassCastException.class)
  public void testIdTypeError() {
    ApplicationContext context = new XmlApplicationContext("firefly2.xml");
    CollectionService collectionService = context
        .getBean("collectionService");
    for (Integer i : collectionService.getSet())
      i++;

  }
View Full Code Here


    }
 
  }
 
  public static void main2(String[] args) {
    ApplicationContext applicationContext = new XmlApplicationContext("error-config4.xml");
    FoodService foodService = applicationContext.getBean("foodServiceErrorTest");
    System.out.println(foodService.getFood(null));
  }
View Full Code Here

TOP

Related Classes of com.firefly.core.ApplicationContext

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.