
org.opengis.cite.ogcapiedr10.EtsAssert Maven / Gradle / Ivy
package org.opengis.cite.ogcapiedr10;
/**
* Provides a set of custom assertion methods.
*
* @author Lyn Goltz
*/
public class EtsAssert {
/**
* @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);
}
/**
* @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