com.consol.citrus.testng
Class AbstractBeanDefinitionParserTest

java.lang.Object
  extended by org.springframework.test.context.testng.AbstractTestNGSpringContextTests
      extended by com.consol.citrus.testng.AbstractTestNGUnitTest
          extended by com.consol.citrus.testng.AbstractBeanDefinitionParserTest
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.testng.IHookable, org.testng.ITestNGListener
Direct Known Subclasses:
AbstractActionParserTest

public abstract class AbstractBeanDefinitionParserTest
extends AbstractTestNGUnitTest

Abstract base testng test for Citrus bean definition parser unit testing. Provides access to an application context holding bean definitions parsed from Citrus bean definition parsers.

Author:
Christoph Deppisch

Field Summary
protected  org.springframework.context.ApplicationContext beanDefinitionContext
          Application context holding bean definitions parsed
 
Fields inherited from class com.consol.citrus.testng.AbstractTestNGUnitTest
context, testContextFactoryBean
 
Fields inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
applicationContext, logger
 
Constructor Summary
AbstractBeanDefinitionParserTest()
           
 
Method Summary
protected  org.springframework.context.ApplicationContext createApplicationContext(String suffix)
          Creates a new application context with specified child application context.
protected  void parseBeanDefinitions()
          Creates the application context with bean definitions parsed.
 
Methods inherited from class com.consol.citrus.testng.AbstractTestNGUnitTest
createTestContext, prepareTest
 
Methods inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
run, setApplicationContext, springTestContextAfterTestClass, springTestContextAfterTestMethod, springTestContextBeforeTestClass, springTestContextBeforeTestMethod, springTestContextPrepareTestInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

beanDefinitionContext

protected org.springframework.context.ApplicationContext beanDefinitionContext
Application context holding bean definitions parsed

Constructor Detail

AbstractBeanDefinitionParserTest

public AbstractBeanDefinitionParserTest()
Method Detail

parseBeanDefinitions

protected void parseBeanDefinitions()
Creates the application context with bean definitions parsed. By default searches for SimpleClassName-context.xml application context file in test package and builds child application context.


createApplicationContext

protected org.springframework.context.ApplicationContext createApplicationContext(String suffix)
Creates a new application context with specified child application context. Child application context is named SimpleClassName-[suffix].xml and is located in test class package.

Parameters:
string -
Returns:


Copyright © 2008-2013 ConSol* Consulting&Solutions GmbH. All Rights Reserved.