Class JUnitTestSuiteProcessor

  • All Implemented Interfaces:
    org.eclipse.xtend.lib.macro.CodeGenerationParticipant<org.eclipse.xtend.lib.macro.declaration.ClassDeclaration>, org.eclipse.xtend.lib.macro.RegisterGlobalsParticipant<org.eclipse.xtend.lib.macro.declaration.ClassDeclaration>, org.eclipse.xtend.lib.macro.TransformationParticipant<org.eclipse.xtend.lib.macro.declaration.MutableClassDeclaration>, org.eclipse.xtend.lib.macro.ValidationParticipant<org.eclipse.xtend.lib.macro.declaration.ClassDeclaration>

    @Order(-9000)
    public class JUnitTestSuiteProcessor
    extends TestSuiteProcessor
    In contrast to TestSuiteProcessor this processor additional adds the RunWith annotation in order to fulfill the JUnit API and to make the annotated class executable by JUnit.
    Since:
    2.0.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doTransform​(org.eclipse.xtend.lib.macro.declaration.MutableClassDeclaration annotatedClass, org.eclipse.xtend.lib.macro.TransformationContext context)  
      • Methods inherited from class org.eclipse.xtend.lib.macro.AbstractClassProcessor

        doGenerateCode, doGenerateCode, doRegisterGlobals, doRegisterGlobals, doTransform, doValidate, doValidate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JUnitTestSuiteProcessor

        public JUnitTestSuiteProcessor()
    • Method Detail

      • doTransform

        public void doTransform​(org.eclipse.xtend.lib.macro.declaration.MutableClassDeclaration annotatedClass,
                                @Extension
                                org.eclipse.xtend.lib.macro.TransformationContext context)
        Overrides:
        doTransform in class TestSuiteProcessor