Test Result : EnvironmentModuleTest

0 failures (±0)
37 tests (-74)
Took 58 ms.

All Tests

Test nameDurationStatus
addModuleListener_informs_listener_on_module_load12 msPassed
addModuleListener_sends_reloaded_event2 msPassed
execute_injects_script_code1 msPassed
exit_sets_script_return_code0 msPassed
exit_throws_exception0 msPassed
getModuleDefinition_returns_environment_definition1 msPassed
getModule_by_class_finds_environment_module1 msPassed
getModule_by_class_finds_loaded_module2 msPassed
getModule_by_class_returns_null_for_unknown_module0 msPassed
getModule_by_name_finds_environment_module1 msPassed
getModule_by_name_finds_loaded_module1 msPassed
getModule_by_name_returns_null_for_unknonw_module1 msPassed
getModules_contains_environment_module1 msPassed
getModules_contains_loaded_module6 msPassed
getScriptEngine_returns_engine_instance0 msPassed
getWrappedVariableName_returns_unique_name_per_class0 msPassed
hasMethodCallback_is_false_when_method_is_not_registered0 msPassed
hasMethodCallback_is_false_when_no_callbackProvider_is_registered1 msPassed
hasMethodCallback_is_true_when_a_callbackProvider_is_registered_for_a_method12 msPassed
include_executes_referenced_resource1 msPassed
include_throws_on_invalid_resource0 msPassed
loadJar_registers_URL1 msPassed
loadModule_throws_on_unknown_module0 msPassed
postMethodCallback_calls_callbackProvider1 msPassed
preMethodCallback_calls_callbackProvider1 msPassed
printError_multiple_prints_same_error_multiple_times1 msPassed
printError_once_prints_same_error_only_once1 msPassed
printError_writes_to_error_stream0 msPassed
print_false_writes_to_output_string1 msPassed
print_true_appends_line_feed1 msPassed
readInput_blocking_reads_single_line_on_each_call3 msPassed
readInput_blocking_stops_when_stream_is_closed1 msPassed
readInput_filters_carriage_return0 msPassed
readInput_nonBlocking_is_empty_when_no_data_is_availble0 msPassed
readInput_nonBlocking_is_firstLine_when_data_is_availble0 msPassed
removeModuleListener_stops_sending_events_to_listener2 msPassed
wrap_wraps_instance_methods3 msPassed