IdolFindConfig extends AbstractConfig<IdolFindConfig> implements UserServiceConfig, IdolSearchCapable, FindConfig<IdolFindConfig, IdolFindConfigBuilder>, PasswordsConfig<IdolFindConfig> { @Override public void basicValidate(final String section) throws ConfigException { login.basicValidate(SECTION); content.basicValidate("content"); trending.basicValidate("trending"); themeTracker.basicValidate("themeTracker"); savedSearchConfig.basicValidate(SECTION); if(map != null) { map.basicValidate("map"); } if(export != null) { export.basicValidate(SECTION); } if(queryManipulation != null) { queryManipulation.basicValidate(SECTION); } if(answerServer != null) { answerServer.basicValidate("AnswerServer"); } if(entitySearch != null) { entitySearch.basicValidate(EntitySearchConfig.SECTION); } if(controlPoint != null) { controlPoint.basicValidate(ControlPointConfig.SECTION); } }  @Override IdolFindConfig merge(final IdolFindConfig maybeOther); @Override Map<String, OptionalConfigurationComponent<?>> getValidationMap(); @JsonIgnore @Override AciServerDetails getCommunityDetails(); @JsonIgnore @Override Authentication<?> getAuthentication(); @Override IdolFindConfig withoutDefaultLogin(); @Override IdolFindConfig generateDefaultLogin(); @Override IdolFindConfig withHashedPasswords(); @Override IdolFindConfig withoutPasswords(); @Override IdolFindConfig withEncryptedPasswords(final TextEncryptor encryptor); @Override IdolFindConfig withDecryptedPasswords(final TextEncryptor encryptor); @Override void basicValidate(final String section); @JsonIgnore @Override AciServerDetails getContentAciServerDetails(); @Override @JsonIgnore ViewConfig getViewConfig(); @Override String lookupComponentNameByHostAndPort(final String hostName, final int port);  }
@Test public void validateGoodConfig() throws ConfigException { idolFindConfig.basicValidate(null); }
@Test(expected = ConfigException.class) public void validateBadConfig() throws ConfigException { doThrow(new ConfigException("QMS", "Bad Config")).when(queryManipulation).basicValidate(anyString()); idolFindConfig.basicValidate(null); }