Java Assert True assertTrue(boolean condition)

Here you can find the source of assertTrue(boolean condition)

Description

assert True

License

LGPL

Declaration

public static void assertTrue(boolean condition) 

Method Source Code

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

public class Main {
    public static void assertTrue(boolean condition) {
        assert condition;
    }//from ww  w  .  j a  v a2  s  .c om

    public static void assertTrue(String message, boolean condition) {
        if (message != null)
            assert condition : message;
        else
            assert condition;
    }
}

Related

  1. assertTrue(boolean b)
  2. assertTrue(boolean b, String msgTemplate, Object... params)
  3. assertTrue(boolean condition)
  4. assertTrue(boolean condition, String argName, String message)
  5. assertTrue(boolean condition, String message)
  6. assertTrue(boolean condition, String message)
  7. assertTrue(boolean condition, String msg)