io.odysz.semantic.syn.IAssert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of semantic.DA Show documentation
Show all versions of semantic.DA Show documentation
JDBC Data Access with Semantics Support
package io.odysz.semantic.syn;
/**
* Interface for separating Semantic.DA's utils, e. g. Docheck from depending
* on JUnit test package.
*
* Implementation example:
* import static io.odysz.common.LangExt.isNull;
* import static org.junit.jupiter.api.Assertions.assertEquals;
* import io.odysz.semantic.syn.IAssert;
* public class AssertImpl implements IAssert {
* public void equals(T a, T b, String... msg) throws Error {
* assertEquals(a, b, isNull(msg) ? null : msg[0]);
* }
* public void equals(int a, int b, String... msg) throws Error {
* assertEquals(a, b, isNull(msg) ? null : msg[0]);
* }
* public void fail(String e) throws Error {
* fail(e);
* }
* public void equals(long a, long b, String... msg) {
* ssertEquals(a, b, isNull(msg) ? null : msg[0]);
* }
* }
*/
public interface IAssert {
void equals(T a, T b, String ...msg) throws Error;
void equali(int a, int b, String ...msg) throws Error;
void equall(long l, long m, String... msg);
void fail(String format) throws Error;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy