Public Member Functions | |
boolean | doAssert (boolean condition, String errMsg) |
Static Public Member Functions | |
static boolean | assertTrue (boolean condition, String errMsg) |
A Netbeans oriented implementation of the Assert mechanism. Can be called either directly, using the static NbAssert.assertTrue method or from the principal Assert class
static boolean cern.gp.util.NbAssert.assertTrue | ( | boolean | condition, | |
String | errMsg | |||
) | [static] |
asserts a condition. Does nothing if the condition is true, shows the error message in a JDialog if the condition is false beware: Unlike the normal cern.spsea.util.Assert#assertTrue(boolean, String) method execution continues after this statement, it does not throw a RuntimeException. If the program cannot continue after an assertion failure, you have to take appropriate measures yourself
condition | the condition to be checked | |
errMsg | the message to be displayed if the condition is false |
asserts a condition. Does nothing if the condition is true, shows the error message in a JDialog if the condition is false beware: Unlike the normal cern.spsea.util.Assert#assertTrue(boolean, String) method execution continues after this statement, it does not throw a RuntimeException. If the program cannot continue after an assertion failure, you have to take appropriate measures yourself
condition | the condition to be checked | |
errMsg | the message to be displayed if the condition is false |
References cern.gp.util.NbAssert.doAssert().
boolean cern.gp.util.NbAssert.doAssert | ( | boolean | condition, | |
String | errMsg | |||
) |
implementation of the IAssert interface. Called either from the assertTrue method in this class or from the assertTrue method in the main Assert class. beware: Unlike the normal cern.spsea.util.Assert#assertTrue(boolean, String) method execution continues after this statement, it does not throw a RuntimeException. If the program cannot continue after an assertion failure, you have to take appropriate measures yourself
condition | the condition to be checked | |
errMsg | the message to be displayed if the condition is false |
Implements cern.gp.util.IAssert.
Referenced by cern.gp.util.NbAssert.assertTrue().