@Test public void getOptions() { final Map<String, String> expected = ImmutableMap.<String, String>builder(). put("Foo", "foo"). put("Foo bar", "foo_bar"). put("Foo-bar", "foo-bar"). build(); ctx.registerInjectActivateService(new ExternalRedirectRenditionDispatcherImpl(), ImmutableMap.<String, Object>builder(). put("rendition.mappings", new String[]{ "foo=foo value", "foo_bar=foo_bar value", "foo-bar=foo-bar value"}). build()); final AssetRenditionDispatcher assetRenditionDispatcher = ctx.getService(AssetRenditionDispatcher.class); final Map<String, String> actual = assetRenditionDispatcher.getOptions(); assertEquals(expected, actual); }
@Override public Map<String, String> getOptions() { return assetRenditions.getOptions(mappings); }
ExternalRedirectRenditionDispatcherImpl extends AbstractRenditionDispatcherImpl implements AssetRenditionDispatcher { @Override public Map<String, String> getOptions() { return assetRenditions.getOptions(mappings); } }
ExternalRedirectRenditionDispatcherImpl extends AbstractRenditionDispatcherImpl implements AssetRenditionDispatcher { @Override public Map<String, String> getOptions() { return assetRenditions.getOptions(mappings); }  }
ExternalRedirectRenditionDispatcherImpl extends AbstractRenditionDispatcherImpl implements AssetRenditionDispatcher { @Override public Map<String, String> getOptions() { return assetRenditions.getOptions(mappings); }  @Override String getLabel(); @Override String getName(); @Override Map<String, String> getOptions(); @Override boolean isHidden(); @Override Set<String> getRenditionNames(); @Override List<String> getTypes(); @Override void dispatch(SlingHttpServletRequest request, SlingHttpServletResponse response); }
ExternalRedirectRenditionDispatcherImpl extends AbstractRenditionDispatcherImpl implements AssetRenditionDispatcher { @Override public Map<String, String> getOptions() { return assetRenditions.getOptions(mappings); }  @Override String getLabel(); @Override String getName(); @Override Map<String, String> getOptions(); @Override boolean isHidden(); @Override Set<String> getRenditionNames(); @Override List<String> getTypes(); @Override void dispatch(SlingHttpServletRequest request, SlingHttpServletResponse response);  }