Code example for Set

Methods: contains

0
	/** 
	 * Assume that a particular {@link TestGroup} has been specified. 
	 * @param group the group that must be specified. 
	 */ 
	public static void group(TestGroup group) {
		if (!GROUPS.contains(group)) {
			throw new AssumptionViolatedException("Requires unspecified group " + group
					+ " from " + GROUPS);
		} 
	} 
 
	/** 
	 * Assume that the specified log is not set to Trace or Debug. 
	 * @param log the log to test 
	 */ 
	public static void notLogging(Log log) {
		assumeFalse(log.isTraceEnabled());
		assumeFalse(log.isDebugEnabled());
	} 
 
Experience pair programming with AI  Get Codota for Java