Java Assert assertFact(boolean truth, String failure)

Here you can find the source of assertFact(boolean truth, String failure)

Description

assert Fact

License

Open Source License

Declaration

static void assertFact(boolean truth, String failure) 

Method Source Code

//package com.java2s;

public class Main {
    static void assertFact(boolean truth, String failure) {
        if (!truth) {
            System.err.println("assertion failed: " + failure);
            System.exit(1);/*www .  ja  v  a2  s .c  om*/
        }
    }
}

Related

  1. assertDifferentInstance(final Object o1, final Object o2)
  2. assertDotted(String name)
  3. assertEntryCount(final long entryCount)
  4. assertEnvVarPresent(String envVarKey, String errorMessage)
  5. assertException(Runnable task, Class clazz)
  6. assertFailed(Object expression, Object message)
  7. assertFails(Class expectedThrowable, String pattern, int... values)
  8. assertFalse(boolean test, String message)
  9. assertFalse(final boolean result, final String message)