Class TestReportersFactory

java.lang.Object
org.citrusframework.reporter.TestReportersFactory
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.FactoryBean<TestReporters>, org.springframework.context.ApplicationContextAware

public class TestReportersFactory extends Object implements org.springframework.beans.factory.FactoryBean<TestReporters>, org.springframework.context.ApplicationContextAware
Factory bean automatically adds all test reporters that live in the Spring bean application context. The default test reporters get also added via Spring bean reference. This is why this registry explicitly does not use default reporter in order to not duplicate those.
Author:
Christoph Deppisch
  • Constructor Details

    • TestReportersFactory

      public TestReportersFactory()
      Default constructor.
    • TestReportersFactory

      public TestReportersFactory(TestReporters registry)
      Constructor initializes with given registry.
      Parameters:
      registry -
  • Method Details

    • getObject

      public TestReporters getObject() throws Exception
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<TestReporters>
      Throws:
      Exception
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<TestReporters>
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<TestReporters>
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException