Spring Framework GenericGroovyApplicationContext - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework GenericGroovyApplicationContext class.

This code example shows how to use the following methods:getBean, load, refresh
		assertEquals("SpringSource", company);
	public void testLoadingMultipleConfigFilesWithRelativeClass() { 
		GenericGroovyApplicationContext ctx = new GenericGroovyApplicationContext();
		ctx.load(GroovyApplicationContextTests.class, "applicationContext2.groovy", "applicationContext.groovy");
		Object framework = ctx.getBean("framework");
		assertNotNull("could not find framework bean", framework);
		assertEquals("Grails", framework);
		Object company = ctx.getBean("company");
		assertNotNull("could not find company bean", company);
		assertEquals("SpringSource", company);
	@Test(expected = BeanDefinitionParsingException.class)
	public void testConfigFileParsingError() { 
See Code Examples for Spring Framework GenericGroovyApplicationContext Methods: