/** * Fails if feature is not supported in Mvcc mode. * * @param feature Mvcc feature. * @throws AssertionError If failed. */ @SuppressWarnings("fallthrough") private static void validateFeature(Feature feature) { String reason = unsupportedReason(feature); if (reason != null) fail(reason); }
/** * Skips test if feature is not supported. * * @param f feature. */ public static void skipIfNotSupported(Feature f) { if (!forcedMvcc()) return; String reason = unsupportedReason(f); Assume.assumeTrue(reason, reason == null); }