boolean () { //Normally, we should use Assume.assumeTrue(...) in the branches below. // But junit3 doesn't support AssumptionFailedException yet, hence we're // forced to do early-return in a test method if (MAX_GIST_SIZE_TO_STORE_IN_ATTRIBUTES <= 0) { //"Huge Gists saving to dedicated files is disabled -- skip the test" return false; } if (MAX_GIST_SIZE_TO_STORE_IN_ATTRIBUTES >= 50 * IOUtil.MiB) { //"Max Gists size is too big to test (" + MAX_GIST_SIZE_TO_STORE_IN_ATTRIBUTES + ", risk of OoM) -- skip the test" return false; } return true; }