From version 4.7, JUnit introduced a new concept called Rules which really helpful. Rules allow very flexible addition or redefinition of the behavior of each test method in a test class. Testers can reuse or extend one of the provided Rules below, or write their own. Here are some of the rules: TemporaryFolder Rule allows creation […]
Moon Cui