All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opengis.cite.ogcapiprocesses10.EtsAssert Maven / Gradle / Ivy

There is a newer version: 1.2
Show newest version
package org.opengis.cite.ogcapiprocesses10;

/**
 * Provides a set of custom assertion methods.
 *
 * @author Lyn Goltz 
 */
public class EtsAssert {

	/**
	 * 

* assertTrue. *

* @param valueToAssert the boolean to assert to be true * @param failureMsg the message to throw in case of a failure, should not be * null */ public static void assertTrue(boolean valueToAssert, String failureMsg) { if (!valueToAssert) throw new AssertionError(failureMsg); } /** *

* assertFalse. *

* @param valueToAssert the boolean to assert to be false * @param failureMsg the message to throw in case of a failure, should not be * null */ public static void assertFalse(boolean valueToAssert, String failureMsg) { if (valueToAssert) throw new AssertionError(failureMsg); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy