Skip to content

Test Result : EnvironmentModuleTest

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

All Tests

Test nameDurationStatus
addModuleListener() informs listener on module loading0.16 secPassed
addModuleListener() sends reloaded event2 msPassed
execute() injects script code1 msPassed
exit() sets script return code0 msPassed
exit() throws exception1 msPassed
formatText() resolves formatter instructions1 msPassed
formatText() resolves static string0 msPassed
formatText() resolves system property0 msPassed
formatText() resolves variables0.38 secPassed
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 module2 msPassed
getModule(name) = null ... for unknown module0 msPassed
getModule(name) finds Environment module0 msPassed
getModule(name) finds loaded module1 msPassed
getModuleDefinition(env) returns environment definition1 msPassed
getModules() contains environment module1 msPassed
getModules() contains loaded module2 msPassed
getScriptEngine() returns engine instance1 msPassed
getWrappedVariableName() returns unique name per class0 msPassed
hasMethodCallback() = false ... when method is not registered0 msPassed
hasMethodCallback() = false ... when no callbackProvider is registered0 msPassed
hasMethodCallback() = true ... when a callbackProvider is registered for a method11 msPassed
include() executes referenced resource0.1 secPassed
include() throws ... on invalid resource1 msPassed
loadJar() registers URL1 msPassed
loadModule() throws ... on unknown module0 msPassed
postMethodCallback() calls callbackProvider0 msPassed
preMethodCallback() calls callbackProvider2 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 times1 msPassed
printError(once) prints same error only once0 msPassed
readInput() filters carriage return1 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 listener1 msPassed
toDouble() converts double value0 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 value1 msPassed
toInt() throws ... for invalid input0 msPassed
toString() converts Object value0 msPassed
toString() converts string value0 msPassed
wrap() wraps instance methods5 msPassed