Skip to content

Test Result : EnvironmentModuleTest

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

All Tests

Test nameDurationStatus
Reporting / addModuleListener() informs listener on module loading19 msPassed
Reporting / addModuleListener() sends reloaded event3 msPassed
Reporting / execute() injects script code1 msPassed
Reporting / exit() sets script return code0 msPassed
Reporting / exit() throws exception1 msPassed
Reporting / formatText() resolves formatter instructions1 msPassed
Reporting / formatText() resolves static string0 msPassed
Reporting / formatText() resolves system property1 msPassed
Reporting / formatText() resolves variables2 msPassed
Reporting / formatText() throws ... for unknown token2 msPassed
Reporting / getLoadedModules() returns loaded modules4 msPassed
Reporting / getModule(class) = null ... for unknown module0 msPassed
Reporting / getModule(class) finds Environment module1 msPassed
Reporting / getModule(class) finds loaded module3 msPassed
Reporting / getModule(name) = null ... for unknown module1 msPassed
Reporting / getModule(name) finds Environment module1 msPassed
Reporting / getModule(name) finds loaded module3 msPassed
Reporting / getModuleDefinition(env) returns environment definition1 msPassed
Reporting / getModules() contains environment module1 msPassed
Reporting / getModules() contains loaded module2 msPassed
Reporting / getScriptEngine() returns engine instance0 msPassed
Reporting / getWrappedVariableName() returns unique name per class1 msPassed
Reporting / hasMethodCallback() = false ... when method is not registered1 msPassed
Reporting / hasMethodCallback() = false ... when no callbackProvider is registered1 msPassed
Reporting / hasMethodCallback() = true ... when a callbackProvider is registered for a method20 msPassed
Reporting / include() executes referenced resource0.21 secPassed
Reporting / include() throws ... on invalid resource1 msPassed
Reporting / loadJar() registers URL24 msPassed
Reporting / loadModule() throws ... on unknown module1 msPassed
Reporting / postMethodCallback() calls callbackProvider2 msPassed
Reporting / preMethodCallback() calls callbackProvider1 msPassed
Reporting / print(false) writes to output stream0 msPassed
Reporting / print(true) appends line feed1 msPassed
Reporting / printError() writes to error stream1 msPassed
Reporting / printError(multiple) prints same error multiple times1 msPassed
Reporting / printError(once) prints same error only once1 msPassed
Reporting / readInput() filters carriage return1 msPassed
Reporting / readInput(blocking) reads single line on each call1 msPassed
Reporting / readInput(blocking) stops when stream is closed0 msPassed
Reporting / readInput(non-blocking) = '' when ... no data is available0 msPassed
Reporting / readInput(non-blocking) = 'firstLine' ... when data is available1 msPassed
Reporting / removeModuleListener() stops sending events to listener3 msPassed
Reporting / toDouble() converts double value1 msPassed
Reporting / toDouble() converts int value0 msPassed
Reporting / toDouble() converts string value0 msPassed
Reporting / toDouble() throws ... for invalid input1 msPassed
Reporting / toInt() converts double value0 msPassed
Reporting / toInt() converts int value1 msPassed
Reporting / toInt() converts string value1 msPassed
Reporting / toInt() throws ... for invalid input1 msPassed
Reporting / toString() converts Object value0 msPassed
Reporting / toString() converts string value1 msPassed
Reporting / wrap() wraps instance methods3 msPassed