I've been tasked with moving some code from Quartz 1 to Quartz 2. The migration guide has served me well, but I did run into one case it didn't cover.
The unit tests for my project make assertions about the value of isStateful() and isVolatile() of a JobDetail. The methods aren't present in Quartz 2. Additionally, I saw in the Database Schema Changes section of the migration guide that the is_volatile and is_stateful columns have been dropped.
What's the correct way to test for statefulness and volatility? Or should I just remove those assertions from my unit tests altogether?
The notion of volatility was completely removed from Quartz 2.x, so that should just be removed from your tests.
The notion of statefulness was removed (well, strongly deprecated) and replaced with two independent concepts: @PersistJobDataAfterExecution and @DisallowConcurrentExecution. The JobDetail interface therefore now has the methods isPersistJobDataAfterExecution() and isConcurrentExectionDisallowed().