|
org.netbeans.modules.nbjunit/1 1.41 | |||||||||
PREV NEXT | FRAMES NO FRAMES |
See:
Description
NB JUnit | |
---|---|
org.netbeans.junit | |
org.netbeans.junit.diff |
Module contains NetBeans extension to JUnit. It is a library used in XTest and library wrapper module.
Not persistent implementation of java.util.prefs.Preferences
is installed in place of the platform-specific default implementation for running tests.
See document
Preferences in NetBeans
to learn more.
MockServices
The MockServices class now supports closer cooperation
with Lookup
. By default, clients listening to
Lookup.Result
changes will be notified about
change in its content whenever one calls MockServices.setServices
.
MockServices
Added new utility to help unit tests create mock implementations of global services for lookup.
An excelent tool to emulate race condition, deadlock or any other non-deterministic behaviour created in the form of Log.controlFlow method.
Added two ways how to enable logging in a test case. One can either overwrite NbTestCase.logLevel method and return the right level to capture in the test and then all the messages logged with the level and greater will be sent to NbTestCase.getLog() stream which is placed in working directory.
Or one can directly call
Log.enable
to capture all the logging into a CharSequence
which can be later queried for its content, usually by calling its.toString()
method.
Tests typically extends NbTestCase.
The sources for the module are in NetBeans CVS in xtest/nbjunit directory.
Nothing.
Read more about the implementation in the answers to architecture questions.
|
org.netbeans.modules.nbjunit/1 1.41 | |||||||||
PREV NEXT | FRAMES NO FRAMES |