I define two rules defined in one of the test classes, but the strange thing is that only one of them works at a time - the one that was defined last.
@Rule public ExpectedException exception = ExpectedException.none(); @Rule public TemporaryFolder folder= new TemporaryFolder();
I cannot understand how much I can define two or more rules and use them separately
source share