@Test public void getBindingVariables() { Map<String, BindingVariable> variables = provider.getBindingVariables(scriptContext); assertEquals(1, variables.size()); BindingVariable variable = variables.get("aecu"); assertNotNull(variable); AecuBinding binding = (AecuBinding) variable.getValue(); assertNotNull(binding); }
@Override public Map<String, BindingVariable> getBindingVariables(ScriptContext context) { Map<String, BindingVariable> variables = new HashMap<>(); try { AecuBinding aecuBinding = new AecuBindingImpl(resourceResolverService.getContentMigratorResourceResolver(), resourceResolverService.getAdminResourceResolver(), resourceResolverFactory, replicator, context); BindingVariable aecuVar = new BindingVariable(aecuBinding, AecuBinding.class, "https: variables.put(AecuBinding.BINDING_NAME, aecuVar); } catch (LoginException e) { LOG.error( "Failed to get resource resolver for aecu-content-migrator or aecu-admin, make sure you all the configurations needed for this system user are deployed."); } return variables; }
AecuBindingExtensionProvider implements BindingExtensionProvider { @Override public Map<String, BindingVariable> getBindingVariables(ScriptContext context) { Map<String, BindingVariable> variables = new HashMap<>(); try { AecuBinding aecuBinding = new AecuBindingImpl(resourceResolverService.getContentMigratorResourceResolver(), resourceResolverService.getAdminResourceResolver(), resourceResolverFactory, replicator, context); BindingVariable aecuVar = new BindingVariable(aecuBinding, AecuBinding.class, "https: variables.put(AecuBinding.BINDING_NAME, aecuVar); } catch (LoginException e) { LOG.error( "Failed to get resource resolver for aecu-content-migrator or aecu-admin, make sure you all the configurations needed for this system user are deployed."); } return variables; } }
AecuBindingExtensionProvider implements BindingExtensionProvider { @Override public Map<String, BindingVariable> getBindingVariables(ScriptContext context) { Map<String, BindingVariable> variables = new HashMap<>(); try { AecuBinding aecuBinding = new AecuBindingImpl(resourceResolverService.getContentMigratorResourceResolver(), resourceResolverService.getAdminResourceResolver(), resourceResolverFactory, replicator, context); BindingVariable aecuVar = new BindingVariable(aecuBinding, AecuBinding.class, "https: variables.put(AecuBinding.BINDING_NAME, aecuVar); } catch (LoginException e) { LOG.error( "Failed to get resource resolver for aecu-content-migrator or aecu-admin, make sure you all the configurations needed for this system user are deployed."); } return variables; }  }
AecuBindingExtensionProvider implements BindingExtensionProvider { @Override public Map<String, BindingVariable> getBindingVariables(ScriptContext context) { Map<String, BindingVariable> variables = new HashMap<>(); try { AecuBinding aecuBinding = new AecuBindingImpl(resourceResolverService.getContentMigratorResourceResolver(), resourceResolverService.getAdminResourceResolver(), resourceResolverFactory, replicator, context); BindingVariable aecuVar = new BindingVariable(aecuBinding, AecuBinding.class, "https: variables.put(AecuBinding.BINDING_NAME, aecuVar); } catch (LoginException e) { LOG.error( "Failed to get resource resolver for aecu-content-migrator or aecu-admin, make sure you all the configurations needed for this system user are deployed."); } return variables; }  @Override Map<String, BindingVariable> getBindingVariables(ScriptContext context); }
AecuBindingExtensionProvider implements BindingExtensionProvider { @Override public Map<String, BindingVariable> getBindingVariables(ScriptContext context) { Map<String, BindingVariable> variables = new HashMap<>(); try { AecuBinding aecuBinding = new AecuBindingImpl(resourceResolverService.getContentMigratorResourceResolver(), resourceResolverService.getAdminResourceResolver(), resourceResolverFactory, replicator, context); BindingVariable aecuVar = new BindingVariable(aecuBinding, AecuBinding.class, "https: variables.put(AecuBinding.BINDING_NAME, aecuVar); } catch (LoginException e) { LOG.error( "Failed to get resource resolver for aecu-content-migrator or aecu-admin, make sure you all the configurations needed for this system user are deployed."); } return variables; }  @Override Map<String, BindingVariable> getBindingVariables(ScriptContext context);  }