org.opengis.cite.ogcapitiles10.EtsAssert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ets-ogcapi-tiles10 Show documentation
Show all versions of ets-ogcapi-tiles10 Show documentation
Describe purpose of test suite.
package org.opengis.cite.ogcapitiles10;
/**
* 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 - 2024 Weber Informatics LLC | Privacy Policy