Skip to content

Test Result : EnvironmentModuleTest

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

All Tests

Test nameDurationStatus
addModuleListener() informs listener on module loading0.18 secPassed
addModuleListener() sends reloaded event2 msPassed
execute() injects script code1 msPassed
exit() sets script return code1 msPassed
exit() throws exception1 msPassed
formatText() resolves formatter instructions1 msPassed
formatText() resolves static string1 msPassed
formatText() resolves system property0 msPassed
formatText() resolves variables0.47 secPassed
formatText() throws ... for unknown token2 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 module1 msPassed
getModule(name) finds Environment module0 msPassed
getModule(name) finds loaded module2 msPassed
getModuleDefinition(env) returns environment definition1 msPassed
getModules() contains environment module1 msPassed
getModules() contains loaded module2 msPassed
getScriptEngine() returns engine instance0 msPassed
getWrappedVariableName() returns unique name per class1 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 method41 msPassed
include() executes referenced resource0.14 secPassed
include() throws ... on invalid resource1 msPassed
loadJar() registers URL2 msPassed
loadModule() throws ... on unknown module1 msPassed
postMethodCallback() calls callbackProvider1 msPassed
preMethodCallback() calls callbackProvider3 msPassed
print(false) writes to output stream0 msPassed
print(true) appends line feed0 msPassed
printError() writes to error stream1 msPassed
printError(multiple) prints same error multiple times1 msPassed
printError(once) prints same error only once0 msPassed
readInput() filters carriage return1 msPassed
readInput(blocking) reads single line on each call2 msPassed
readInput(blocking) stops when stream is closed0 msPassed
readInput(non-blocking) = '' when ... no data is available1 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 value0 msPassed
toDouble() throws ... for invalid input1 msPassed
toInt() converts double value1 msPassed
toInt() converts int value0 msPassed
toInt() converts string value0 msPassed
toInt() throws ... for invalid input1 msPassed
toString() converts Object value0 msPassed
toString() converts string value1 msPassed
wrap() wraps instance methods2 msPassed