Class MultipleRulesTeleporterTest


  • public class MultipleRulesTeleporterTest
    extends Object
    Verify that additional JUnit Rules are handled correctly by the teleporter, by doing some funky stuff with a generator Rule and before/after statements. A custom Rule class is defined locally to also verify that it's correctly embedded in the generated test bundle.
    • Field Detail

      • teleporter

        public final org.apache.sling.junit.rules.TeleporterRule teleporter
        Use a RuleChain to make sure the TeleporterRule runs first
      • g

        public final org.apache.sling.launchpad.webapp.integrationtest.teleporter.GeneratorRule<Integer> g
      • counter

        public final org.apache.sling.launchpad.webapp.integrationtest.teleporter.MultipleRulesTeleporterTest.CounterRule counter
      • chain

        public final org.junit.rules.RuleChain chain
    • Constructor Detail

      • MultipleRulesTeleporterTest

        public MultipleRulesTeleporterTest()
    • Method Detail

      • testSquare

        public void testSquare()
      • testBundleContext

        public void testBundleContext()
      • storeValues

        public void storeValues()
      • verifyTrace

        public static void verifyTrace()