Java Assert True assertTrue(boolean expValue, String errMsg)

Here you can find the source of assertTrue(boolean expValue, String errMsg)

Description

assert True

License

Open Source License

Declaration

public static void assertTrue(boolean expValue, String errMsg) 

Method Source Code

//package com.java2s;

public class Main {

    public static void assertTrue(boolean expValue, String errMsg) {

        if (!expValue) {
            throw new RuntimeException(errMsg);
        }/*from   w  w w .j  a  v  a2  s. com*/
    }
}

Related

  1. assertTrue(boolean condition, String message)
  2. assertTrue(boolean condition, String msg)
  3. assertTrue(boolean evalResult, Object... messages)
  4. assertTrue(boolean express)
  5. assertTrue(boolean expression)
  6. assertTrue(boolean value)
  7. assertTrue(final boolean condition, final String message)
  8. assertTrue(final boolean result, final String faultDescription)
  9. assertTrue(final String message, final boolean condition)