Java Assert assertFalse(String string, boolean b)

Here you can find the source of assertFalse(String string, boolean b)

Description

assert False

License

Apache License

Declaration

public static void assertFalse(String string, boolean b) 

Method Source Code

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

public class Main {
    public static void assertFalse(String string, boolean b) {
        if (b)//from w ww.  j av  a2 s.c om
            throw new IllegalStateException(string);
    }
}

Related

  1. assertFact(boolean truth, String failure)
  2. assertFailed(Object expression, Object message)
  3. assertFails(Class expectedThrowable, String pattern, int... values)
  4. assertFalse(boolean test, String message)
  5. assertFalse(final boolean result, final String message)
  6. assertFieldPositive(int fieldValue, String fieldName)
  7. assertGreater(long first, long second)
  8. assertGreaterOrEqualsThan(final long value, final long limit, final String name)
  9. assertGreaterThanOrEquals(String name, double comparedTo, double number)