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

io.odysz.semantic.syn.IAssert Maven / Gradle / Ivy

There is a newer version: 1.5.3
Show newest version
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