@Test public void testFlumeConfigAdsErrorOnNullName() { HashMap<String, String> properties = new HashMap<>(); properties.put(null, "something"); FlumeConfiguration config = new FlumeConfiguration(properties); List<FlumeConfigurationError> configurationErrors = config.getConfigurationErrors(); assertEquals(1, configurationErrors.size()); assertError(configurationErrors.get(0), AGENT_NAME_MISSING, "", "", ERROR); }
public List<FlumeConfigurationError> getConfigurationErrors() { return errors; }
FlumeConfiguration { public List<FlumeConfigurationError> getConfigurationErrors() { return errors; } }
FlumeConfiguration { public List<FlumeConfigurationError> getConfigurationErrors() { return errors; } @Deprecated  FlumeConfiguration(Properties properties);  FlumeConfiguration(Map<String, String> properties); }
FlumeConfiguration { public List<FlumeConfigurationError> getConfigurationErrors() { return errors; } @Deprecated  FlumeConfiguration(Properties properties);  FlumeConfiguration(Map<String, String> properties); List<FlumeConfigurationError> getConfigurationErrors(); AgentConfiguration getConfigurationFor(String hostname); }
FlumeConfiguration { public List<FlumeConfigurationError> getConfigurationErrors() { return errors; } @Deprecated  FlumeConfiguration(Properties properties);  FlumeConfiguration(Map<String, String> properties); List<FlumeConfigurationError> getConfigurationErrors(); AgentConfiguration getConfigurationFor(String hostname); static final String NEWLINE; static final String INDENTSTEP; }