use of org.junit.jupiter.engine.script.ScriptAccessor in project junit5 by junit-team.
the class ScriptExecutionEvaluator method createBindings.
private Bindings createBindings(ExtensionContext context) {
ScriptAccessor configurationParameterAccessor = new ScriptAccessor.ConfigurationParameterAccessor(context);
Bindings bindings = new SimpleBindings();
bindings.put(Script.BIND_JUNIT_TAGS, context.getTags());
bindings.put(Script.BIND_JUNIT_UNIQUE_ID, context.getUniqueId());
bindings.put(Script.BIND_JUNIT_DISPLAY_NAME, context.getDisplayName());
bindings.put(Script.BIND_JUNIT_CONFIGURATION_PARAMETER, configurationParameterAccessor);
return bindings;
}
Aggregations