@Test public void testGoogleSecretsReadPropertiesFromConfiguration_missingClientSecret() throws Exception { PropertiesConfiguration config = new PropertiesConfiguration(); config.setProperty("api.admanager.clientId", "clientId"); thrown.expect(ValidationException.class); new GoogleClientSecretsBuilder() .forApi(GoogleClientSecretsBuilder.Api.AD_MANAGER) .from(config) .build(); }
public GoogleClientSecretsForApiBuilder forApi(Api api) { return new GoogleClientSecretsForApiBuilder(api); }
GoogleClientSecretsBuilder { public GoogleClientSecretsForApiBuilder forApi(Api api) { return new GoogleClientSecretsForApiBuilder(api); } }
GoogleClientSecretsBuilder { public GoogleClientSecretsForApiBuilder forApi(Api api) { return new GoogleClientSecretsForApiBuilder(api); } GoogleClientSecretsBuilder(); }
GoogleClientSecretsBuilder { public GoogleClientSecretsForApiBuilder forApi(Api api) { return new GoogleClientSecretsForApiBuilder(api); } GoogleClientSecretsBuilder(); GoogleClientSecretsForApiBuilder forApi(Api api); }
GoogleClientSecretsBuilder { public GoogleClientSecretsForApiBuilder forApi(Api api) { return new GoogleClientSecretsForApiBuilder(api); } GoogleClientSecretsBuilder(); GoogleClientSecretsForApiBuilder forApi(Api api);  }