Class RenderingTestSuite

  • All Implemented Interfaces:
    org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Orderable, org.junit.runner.manipulation.Sortable

    public class RenderingTestSuite
    extends org.junit.runners.Suite
    Run all tests found in *.test files located in the classpath. These *.test files must follow the conventions described in TestDataParser.

    Usage Example

     
     @RunWith(RenderingTestSuite.class)
     public class IntegrationTests
     {
     }
     
     

    It's also possible to get access to the underlying Component Manager used, for example in order to register Mock implementations of components. For example:

     
     @RunWith(RenderingTestSuite.class)
     @AllComponents
     public class IntegrationTests
     {
         @RenderingTestSuite.Initialized
         public void initialize(MockitoComponentManager componentManager)
         {
             // Init mocks here for example
         }
     }
     
     
    Since:
    3.0RC1
    Version:
    $Id: 206e9b41448f552920e2d95e86f91feef90319f0 $
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  RenderingTestSuite.Initialized  
      static interface  RenderingTestSuite.Scope  
      • Nested classes/interfaces inherited from class org.junit.runners.Suite

        org.junit.runners.Suite.SuiteClasses
    • Constructor Summary

      Constructors 
      Constructor Description
      RenderingTestSuite​(Class<?> klass)
      Only called reflectively.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected List<org.junit.runner.Runner> getChildren()  
      org.junit.runner.Description getDescription()
      We override this method so that the JUnit results are not displayed in a test hierarchy with a single test result for each node (as it would be otherwise since RenderingTest has a single test method).
      • Methods inherited from class org.junit.runners.Suite

        describeChild, emptySuite, runChild
      • Methods inherited from class org.junit.runners.ParentRunner

        childrenInvoker, classBlock, classRules, collectInitializationErrors, createTestClass, filter, getName, getRunnerAnnotations, getTestClass, isIgnored, order, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolation
      • Methods inherited from class org.junit.runner.Runner

        testCount
    • Constructor Detail

      • RenderingTestSuite

        public RenderingTestSuite​(Class<?> klass)
                           throws Throwable
        Only called reflectively. Do not use programmatically.
        Throws:
        Throwable
    • Method Detail

      • getChildren

        protected List<org.junit.runner.Runner> getChildren()
        Overrides:
        getChildren in class org.junit.runners.Suite
      • getDescription

        public org.junit.runner.Description getDescription()
        We override this method so that the JUnit results are not displayed in a test hierarchy with a single test result for each node (as it would be otherwise since RenderingTest has a single test method).
        Specified by:
        getDescription in interface org.junit.runner.Describable
        Overrides:
        getDescription in class org.junit.runners.ParentRunner<org.junit.runner.Runner>