Java Assert assertFalse(final boolean result, final String message)

Here you can find the source of assertFalse(final boolean result, final String message)

Description

assert False

License

Open Source License

Declaration

static void assertFalse(final boolean result, final String message) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    static void assertFalse(final boolean result, final String message) {
        if (result)
            throw new IllegalArgumentException(message);
    }//from  w  w  w  . j ava  2s  . c om
}

Related

  1. assertException(Runnable task, Class clazz)
  2. assertFact(boolean truth, String failure)
  3. assertFailed(Object expression, Object message)
  4. assertFails(Class expectedThrowable, String pattern, int... values)
  5. assertFalse(boolean test, String message)
  6. assertFalse(String string, boolean b)
  7. assertFieldPositive(int fieldValue, String fieldName)
  8. assertGreater(long first, long second)
  9. assertGreaterOrEqualsThan(final long value, final long limit, final String name)