Skip to content

Test Result : EnvironmentModuleTest

0 failures (±0)
53 tests (±0)
Took 0.2 sec.

All Tests

Test nameDurationStatus
addModuleListener() informs listener on module loading15 msPassed
addModuleListener() sends reloaded event2 msPassed
execute() injects script code0 msPassed
exit() sets script return code2 msPassed
exit() throws exception0 msPassed
formatText() resolves formatter instructions1 msPassed
formatText() resolves static string0 msPassed
formatText() resolves system property0 msPassed
formatText() resolves variables1 msPassed
formatText() throws ... for unknown token1 msPassed
getLoadedModules() returns loaded modules2 msPassed
getModule(class) = null ... for unknown module1 msPassed
getModule(class) finds Environment module1 msPassed
getModule(class) finds loaded module1 msPassed
getModule(name) = null ... for unknown module0 msPassed
getModule(name) finds Environment module0 msPassed
getModule(name) finds loaded module2 msPassed
getModuleDefinition(env) returns environment definition0 msPassed
getModules() contains environment module1 msPassed
getModules() contains loaded module27 msPassed
getScriptEngine() returns engine instance1 msPassed
getWrappedVariableName() returns unique name per class0 msPassed
hasMethodCallback() = false ... when method is not registered1 msPassed
hasMethodCallback() = false ... when no callbackProvider is registered1 msPassed
hasMethodCallback() = true ... when a callbackProvider is registered for a method14 msPassed
include() executes referenced resource0.11 secPassed
include() throws ... on invalid resource1 msPassed
loadJar() registers URL2 msPassed
loadModule() throws ... on unknown module1 msPassed
postMethodCallback() calls callbackProvider1 msPassed
preMethodCallback() calls callbackProvider1 msPassed
print(false) writes to output stream1 msPassed
print(true) appends line feed1 msPassed
printError() writes to error stream1 msPassed
printError(multiple) prints same error multiple times0 msPassed
printError(once) prints same error only once1 msPassed
readInput() filters carriage return0 msPassed
readInput(blocking) reads single line on each call1 msPassed
readInput(blocking) stops when stream is closed0 msPassed
readInput(non-blocking) = '' when ... no data is available0 msPassed
readInput(non-blocking) = 'firstLine' ... when data is available1 msPassed
removeModuleListener() stops sending events to listener2 msPassed
toDouble() converts double value1 msPassed
toDouble() converts int value0 msPassed
toDouble() converts string value1 msPassed
toDouble() throws ... for invalid input0 msPassed
toInt() converts double value0 msPassed
toInt() converts int value0 msPassed
toInt() converts string value0 msPassed
toInt() throws ... for invalid input1 msPassed
toString() converts Object value1 msPassed
toString() converts string value0 msPassed
wrap() wraps instance methods2 msPassed