Public Member Functions | |
boolean | doAssert (boolean condition, String errMsg) |
Static Public Member Functions | |
boolean | assertTrue (boolean condition, String errMsg) |
Static Private Member Functions | |
final NbAssert | get () |
Static Private Attributes | |
NbAssert | ass = null |
final Object | lock = new Object() |
|
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
|
|
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
Implements cern::gp::util::IAssert.
|
|
factory method, initializes and/or returns the NbAssert singleton |
|
|
|
|