Class SinceBuildRule

All Implemented Interfaces:
org.junit.rules.TestRule

public class SinceBuildRule extends AbstractBuildNumberRule<SinceBuildRule.SinceBuild> implements org.junit.rules.TestRule
Ensures tests are ignored if the currently running JIRA is on an older build number than when the test was written. This situation arises during a Zero Downtime Upgrade (ZDU), when a JIRA cluster passes through a state where the binaries are on 'latest', but the Upgrade Tasks haven't been run yet, hence the database is on 'old'. Use the @SinceBuild annotation if you're testing: - a feature that is hidden behind a Dark Feature - a database change that requires an Upgrade Task If you're unsure, use the annotation. It won't hurt. Have a look at its counterpart BeforeBuildRule
  • Constructor Details