Package com.firefly.core

Examples of com.firefly.core.XmlApplicationContext


    Assert.assertThat(food.getPrice(), is(10.00));
  }

  @Test(expected = BeanDefinitionParsingException.class)
  public void testErrorConfig1() {
    new XmlApplicationContext("error-config1.xml");
  }
View Full Code Here


    new XmlApplicationContext("error-config1.xml");
  }

  @Test(expected = BeanDefinitionParsingException.class)
  public void testErrorConfig2() {
    new XmlApplicationContext("error-config2.xml");
  }
View Full Code Here

    new XmlApplicationContext("error-config2.xml");
  }

  @Test(expected = BeanDefinitionParsingException.class)
  public void testErrorConfig3() {
    new XmlApplicationContext("error-config3.xml");
  }
View Full Code Here

    new XmlApplicationContext("error-config3.xml");
  }

  @Test(expected = BeanDefinitionParsingException.class)
  public void testErrorConfig4() {
    new XmlApplicationContext("error-config4.xml");
  }
View Full Code Here

    new XmlApplicationContext("error-config4.xml");
  }
 
  @Test(expected = BeanDefinitionParsingException.class)
  public void testErrorConfig5() {
    new XmlApplicationContext("error-config5.xml");
  }
View Full Code Here

    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

    Assert.assertThat(food.getPrice(), is(10.00));
  }

  @Test(expected = BeanDefinitionParsingException.class)
  public void testErrorConfig1() {
    new XmlApplicationContext("error-config1.xml");
  }
View Full Code Here

    new XmlApplicationContext("error-config1.xml");
  }

  @Test(expected = BeanDefinitionParsingException.class)
  public void testErrorConfig2() {
    new XmlApplicationContext("error-config2.xml");
  }
View Full Code Here

    new XmlApplicationContext("error-config2.xml");
  }

  @Test(expected = BeanDefinitionParsingException.class)
  public void testErrorConfig3() {
    new XmlApplicationContext("error-config3.xml");
  }
View Full Code Here

TOP

Related Classes of com.firefly.core.XmlApplicationContext

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.