Java Assert assertNotTrue(boolean conditionThatMustNotBeTrue, String msgWhenTrue)

Here you can find the source of assertNotTrue(boolean conditionThatMustNotBeTrue, String msgWhenTrue)

Description

assert Not True

License

Apache License

Declaration

private static void assertNotTrue(boolean conditionThatMustNotBeTrue, String msgWhenTrue) 

Method Source Code

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

public class Main {

    private static void assertNotTrue(boolean conditionThatMustNotBeTrue, String msgWhenTrue) {
        if (conditionThatMustNotBeTrue) {
            throw new IllegalArgumentException(msgWhenTrue);
        }//from   www. ja v a  2s.  co m
    }
}

Related

  1. assertNotEmpty(String string, String exceptionMessageTitle)
  2. assertNotEmpty(String value, String message)
  3. assertNotEmptyString(final String s)
  4. assertNotEquals(final Object actual, final Object expected, final String name)
  5. assertNotMatches(String name, String regExp, String actual)
  6. assertNotTrue(boolean value, String message)
  7. assertObjectEmpty(Object value)
  8. assertObjEquals(Object expected, Object actual)
  9. assertOffsetLengthValid(int offset, int length, int arrayLength)