@Test(groups = "fast") public void testDefaultConfiguration() throws Exception { final DashboardConfig config = new ConfigurationObjectFactory(System.getProperties()).build(DashboardConfig.class); final LegendConfigurationsManager manager = new LegendConfigurationsManager(config); final Map configuration = manager.getConfiguration(); Assert.assertEquals(configuration.size(), 2); Assert.assertEquals(((Map) configuration.get(LegendConfigurationsManager.LEGENDS_KEY)).size(), 0); Assert.assertEquals(configuration.get(LegendConfigurationsManager.FIXTURES_KEY), ""); }
public Map getConfiguration() { final ImmutableMap.Builder builder = new ImmutableMap.Builder(); builder.put(LEGENDS_KEY, legendConfiguration); builder.put(FIXTURES_KEY, legendFixtures); return builder.build(); }
LegendConfigurationsManager { public Map getConfiguration() { final ImmutableMap.Builder builder = new ImmutableMap.Builder(); builder.put(LEGENDS_KEY, legendConfiguration); builder.put(FIXTURES_KEY, legendFixtures); return builder.build(); } }
LegendConfigurationsManager { public Map getConfiguration() { final ImmutableMap.Builder builder = new ImmutableMap.Builder(); builder.put(LEGENDS_KEY, legendConfiguration); builder.put(FIXTURES_KEY, legendFixtures); return builder.build(); } @Inject  LegendConfigurationsManager(final DashboardConfig config); }
LegendConfigurationsManager { public Map getConfiguration() { final ImmutableMap.Builder builder = new ImmutableMap.Builder(); builder.put(LEGENDS_KEY, legendConfiguration); builder.put(FIXTURES_KEY, legendFixtures); return builder.build(); } @Inject  LegendConfigurationsManager(final DashboardConfig config); Map getConfiguration(); }
LegendConfigurationsManager { public Map getConfiguration() { final ImmutableMap.Builder builder = new ImmutableMap.Builder(); builder.put(LEGENDS_KEY, legendConfiguration); builder.put(FIXTURES_KEY, legendFixtures); return builder.build(); } @Inject  LegendConfigurationsManager(final DashboardConfig config); Map getConfiguration(); static final String LEGENDS_KEY; static final String FIXTURES_KEY; }