Java Assert assertion(boolean value)

Here you can find the source of assertion(boolean value)

Description

assertion

License

Apache License

Declaration

private static void assertion(boolean value) 

Method Source Code

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

public class Main {
    private static void assertion(boolean value) {
        if (!value)
            throw new RuntimeException("Assertion failed.");
    }//from w  w w  .  jav  a  2s.c om
}

Related

  1. assertInstanceOf(Object obj, Class expClass)
  2. assertInstanceOf(Object object, Class expectClass)
  3. assertIntegerGreaterThanZero(long number, String name)
  4. assertIntegerNotNegative(String message, int num)
  5. assertion(boolean isTrue, String reason)
  6. assertion(String operator, String expr)
  7. assertionError(String message, Object... args)
  8. assertionError(String message, Throwable cause)
  9. assertIOThread(Thread t, boolean flag)