Class MultipleRulesTeleporterTest
- java.lang.Object
-
- org.apache.sling.launchpad.webapp.integrationtest.teleporter.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 Summary
Fields Modifier and Type Field Description org.junit.rules.RuleChain
chain
org.apache.sling.launchpad.webapp.integrationtest.teleporter.MultipleRulesTeleporterTest.CounterRule
counter
org.apache.sling.launchpad.webapp.integrationtest.teleporter.GeneratorRule<Integer>
g
org.apache.sling.junit.rules.TeleporterRule
teleporter
Use a RuleChain to make sure the TeleporterRule runs first
-
Constructor Summary
Constructors Constructor Description MultipleRulesTeleporterTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
storeValues()
void
testBundleContext()
void
testSquare()
static void
verifyTrace()
-
-
-
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
-
-