Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
us.ihmc.robotics.Assert Maven / Gradle / Ivy
package us.ihmc.robotics;
public class Assert
{
static public void assertTrue(String message, boolean condition)
{
org.junit.jupiter.api.Assertions.assertTrue(condition, message);
}
static public void assertTrue(boolean condition)
{
org.junit.jupiter.api.Assertions.assertTrue(condition);
}
static public void assertFalse(String message, boolean condition)
{
org.junit.jupiter.api.Assertions.assertFalse(condition, message);
}
static public void assertFalse(boolean condition)
{
org.junit.jupiter.api.Assertions.assertFalse(condition);
}
static public void fail(String message)
{
org.junit.jupiter.api.Assertions.fail(message);
}
static public void fail()
{
org.junit.jupiter.api.Assertions.fail();
}
static public void assertEquals(String message, Object expected, Object actual)
{
org.junit.jupiter.api.Assertions.assertEquals(expected, actual, message);
}
static public void assertEquals(Object expected, Object actual)
{
org.junit.jupiter.api.Assertions.assertEquals(expected, actual);
}
static public void assertNotEquals(Object expected, Object actual)
{
org.junit.jupiter.api.Assertions.assertNotEquals(expected, actual);
}
static public void assertNotEquals(long first, long second)
{
org.junit.jupiter.api.Assertions.assertNotEquals(first, second);
}
static public void assertNotEquals(String message, double first, double second, double delta)
{
org.junit.jupiter.api.Assertions.assertNotEquals(first, second, message);
}
static public void assertNotEquals(double first, double second, double delta)
{
org.junit.jupiter.api.Assertions.assertNotEquals(first, second);
}
public static void assertArrayEquals(Object[] expecteds, Object[] actuals)
{
org.junit.jupiter.api.Assertions.assertArrayEquals(expecteds, actuals);
}
public static void assertArrayEquals(int[] expecteds, int[] actuals)
{
org.junit.jupiter.api.Assertions.assertArrayEquals(expecteds, actuals);
}
public static void assertArrayEquals(byte[] expecteds, byte[] actuals)
{
org.junit.jupiter.api.Assertions.assertArrayEquals(expecteds, actuals);
}
public static void assertArrayEquals(double[] expecteds, double[] actuals, double delta)
{
if (delta == 0.0)
org.junit.jupiter.api.Assertions.assertArrayEquals(expecteds, actuals);
else
org.junit.jupiter.api.Assertions.assertArrayEquals(expecteds, actuals, delta);
}
public static void assertArrayEquals(float[] expecteds, float[] actuals, float delta)
{
if (delta == 0.0)
org.junit.jupiter.api.Assertions.assertArrayEquals(expecteds, actuals);
else
org.junit.jupiter.api.Assertions.assertArrayEquals(expecteds, actuals, delta);
}
public static void assertArrayEquals(String string, double[] data, double[] ds, double delta)
{
if (delta == 0.0)
org.junit.jupiter.api.Assertions.assertArrayEquals(data, ds, string);
else
org.junit.jupiter.api.Assertions.assertArrayEquals(data, ds, delta, string);
}
static public void assertEquals(String message, double expected, double actual, double delta)
{
if (delta == 0.0)
org.junit.jupiter.api.Assertions.assertEquals(expected, actual, message);
else
org.junit.jupiter.api.Assertions.assertEquals(expected, actual, delta, message);
}
static public void assertEquals(String message, float expected, float actual, float delta)
{
if (delta == 0.0)
org.junit.jupiter.api.Assertions.assertEquals(expected, actual, message);
else
org.junit.jupiter.api.Assertions.assertEquals(expected, actual, delta, message);
}
static public void assertEquals(long expected, long actual)
{
org.junit.jupiter.api.Assertions.assertEquals(expected, actual);
}
static public void assertEquals(String message, long expected, long actual)
{
org.junit.jupiter.api.Assertions.assertEquals(expected, actual, message);
}
static public void assertEquals(double expected, double actual, double delta)
{
if (delta == 0.0)
org.junit.jupiter.api.Assertions.assertEquals(expected, actual);
else
org.junit.jupiter.api.Assertions.assertEquals(expected, actual, delta);
}
static public void assertEquals(float expected, float actual, float delta)
{
if (delta == 0.0)
org.junit.jupiter.api.Assertions.assertEquals(expected, actual);
else
org.junit.jupiter.api.Assertions.assertEquals(expected, actual, delta);
}
static public void assertNotNull(String message, Object object)
{
org.junit.jupiter.api.Assertions.assertNotNull(object, message);
}
static public void assertNotNull(Object object)
{
org.junit.jupiter.api.Assertions.assertNotNull(object);
}
static public void assertNull(String message, Object object)
{
org.junit.jupiter.api.Assertions.assertNull(object, message);
}
static public void assertNull(Object object)
{
org.junit.jupiter.api.Assertions.assertNull(object);
}
static public void assertSame(Object expected, Object actual)
{
org.junit.jupiter.api.Assertions.assertSame(expected, actual);
}
static public void assertNotSame(Object unexpected, Object actual)
{
org.junit.jupiter.api.Assertions.assertNotSame(unexpected, actual);
}
}