renamed back to testing-modules, pulled together testing-modules-2 modules into single module
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package com.baeldung.rules;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.rules.RuleChain;
|
||||
|
||||
public class RuleChainUnitTest {
|
||||
|
||||
@Rule
|
||||
public RuleChain chain = RuleChain.outerRule(new MessageLogger("First rule"))
|
||||
.around(new MessageLogger("Second rule"))
|
||||
.around(new MessageLogger("Third rule"));
|
||||
|
||||
@Test
|
||||
public void givenRuleChain_whenTestRuns_thenChainOrderApplied() {
|
||||
assertTrue(true);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user