Java Assert assertGreaterThanOrEquals(String name, double comparedTo, double number)

Here you can find the source of assertGreaterThanOrEquals(String name, double comparedTo, double number)

Description

assert Greater Than Or Equals

License

Apache License

Declaration

public static void assertGreaterThanOrEquals(String name, double comparedTo, double number) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static void assertGreaterThanOrEquals(String name, double comparedTo, double number) {
        if (lessThan(comparedTo, number)) {
            throw new AssertionError(
                    name + ": " + number + " is not greater than or equal to " + comparedTo + " !");
        }/*from   ww w  . j a v  a 2s  .  co  m*/
    }

    public static boolean lessThan(double comparedTo, double number) {
        return number < comparedTo;
    }
}

Related

  1. assertFalse(final boolean result, final String message)
  2. assertFalse(String string, boolean b)
  3. assertFieldPositive(int fieldValue, String fieldName)
  4. assertGreater(long first, long second)
  5. assertGreaterOrEqualsThan(final long value, final long limit, final String name)
  6. assertHasInterface(Class interfaceClass, Class objectClass)
  7. assertHasLength(String... params)
  8. assertHasText(String str)
  9. assertHexOrDecLongValue(String value)