/** * argument greater than or equal the given value. * <p> * See examples in javadoc for {@link AdditionalMatchers} class * * @param value * the given value. * @return <code>null</code>. */ public static <T extends Comparable<T>> T geq(T value) { reportMatcher(new GreaterOrEqual<T>(value)); return null; }
/** * byte argument greater than or equal to the given value. * <p> * See examples in javadoc for {@link AdditionalMatchers} class * * @param value * the given value. * @return <code>0</code>. */ public static byte geq(byte value) { reportMatcher(new GreaterOrEqual<Byte>(value)); return 0; }
/** * long argument less than the given value. * <p> * See examples in javadoc for {@link AdditionalMatchers} class * * @param value * the given value. * @return <code>0</code>. */ public static long lt(long value) { reportMatcher(new LessThan<Long>(value)); return 0; }
/** * int argument greater than or equal to the given value. * <p> * See examples in javadoc for {@link AdditionalMatchers} class * * @param value * the given value. * @return <code>0</code>. */ public static int geq(int value) { reportMatcher(new GreaterOrEqual<Integer>(value)); return 0; }
/** * float argument less than or equal to the given value. * <p> * See examples in javadoc for {@link AdditionalMatchers} class * * @param value * the given value. * @return <code>0</code>. */ public static float leq(float value) { reportMatcher(new LessOrEqual<Float>(value)); return 0; }
/** * float argument greater than the given value. * <p> * See examples in javadoc for {@link AdditionalMatchers} class * * @param value * the given value. * @return <code>0</code>. */ public static float gt(float value) { reportMatcher(new GreaterThan<Float>(value)); return 0; }
/** * long argument greater than the given value. * <p> * See examples in javadoc for {@link AdditionalMatchers} class * * @param value * the given value. * @return <code>0</code>. */ public static long gt(long value) { reportMatcher(new GreaterThan<Long>(value)); return 0; }
/** * comparable argument less than the given value. * <p> * See examples in javadoc for {@link AdditionalMatchers} class * * @param value * the given value. * @return <code>null</code>. */ public static <T extends Comparable<T>> T lt(T value) { reportMatcher(new LessThan<T>(value)); return null; }
/** * double argument less than the given value. * <p> * See examples in javadoc for {@link AdditionalMatchers} class * * @param value * the given value. * @return <code>0</code>. */ public static double lt(double value) { reportMatcher(new LessThan<Double>(value)); return 0; }
/** * float argument less than the given value. * <p> * See examples in javadoc for {@link AdditionalMatchers} class * * @param value * the given value. * @return <code>0</code>. */ public static float lt(float value) { reportMatcher(new LessThan<Float>(value)); return 0; }
/** * String argument that contains a substring that matches the given regular * expression. * * @param regex * the regular expression. * @return <code>null</code>. */ public static String find(String regex) { reportMatcher(new Find(regex)); return null; }
/** * boolean array argument that is equal to the given array, i.e. it has to * have the same length, and each element has to be equal. * <p> * See examples in javadoc for {@link AdditionalMatchers} class * * @param value * the given array. * @return <code>null</code>. */ public static boolean[] aryEq(boolean[] value) { reportMatcher(new ArrayEquals(value)); return null; }
/** * double argument greater than or equal to the given value. * <p> * See examples in javadoc for {@link AdditionalMatchers} class * * @param value * the given value. * @return <code>0</code>. */ public static double geq(double value) { reportMatcher(new GreaterOrEqual<Double>(value)); return 0; }
/** * long argument greater than or equal to the given value. * <p> * See examples in javadoc for {@link AdditionalMatchers} class * * @param value * the given value. * @return <code>0</code>. */ public static long geq(long value) { reportMatcher(new GreaterOrEqual<Long>(value)); return 0; }
/** * double argument less than or equal to the given value. * <p> * See examples in javadoc for {@link AdditionalMatchers} class * * @param value * the given value. * @return <code>0</code>. */ public static double leq(double value) { reportMatcher(new LessOrEqual<Double>(value)); return 0; }
/** * int argument less than or equal to the given value. * <p> * See examples in javadoc for {@link AdditionalMatchers} class * * @param value * the given value. * @return <code>0</code>. */ public static int leq(int value) { reportMatcher(new LessOrEqual<Integer>(value)); return 0; }
/** * comparable argument greater than the given value. * <p> * See examples in javadoc for {@link AdditionalMatchers} class * * @param value * the given value. * @return <code>null</code>. */ public static <T extends Comparable<T>> T gt(T value) { reportMatcher(new GreaterThan<T>(value)); return null; }
/** * double argument greater than the given value. * <p> * See examples in javadoc for {@link AdditionalMatchers} class * * @param value * the given value. * @return <code>0</code>. */ public static double gt(double value) { reportMatcher(new GreaterThan<Double>(value)); return 0; }
/** * short argument greater than the given value. * <p> * See examples in javadoc for {@link AdditionalMatchers} class * * @param value * the given value. * @return <code>0</code>. */ public static short gt(short value) { reportMatcher(new GreaterThan<Short>(value)); return 0; }
/** * short argument less than the given value. * <p> * See examples in javadoc for {@link AdditionalMatchers} class * * @param value * the given value. * @return <code>0</code>. */ public static short lt(short value) { reportMatcher(new LessThan<Short>(value)); return 0; }