Java Assert True assertTrue(boolean condition, String argName, String message)

Here you can find the source of assertTrue(boolean condition, String argName, String message)

Description

assert True

License

Open Source License

Declaration

static void assertTrue(boolean condition, String argName, String message) 

Method Source Code

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

public class Main {
    static void assertTrue(boolean condition, String argName, String message) {
        if (!condition) {
            throw new IllegalArgumentException(argName + ": " + message);
        }// www.j  av a 2s  .  c o  m
    }
}

Related

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