@Test public void testBuilder() throws Exception { GoogleClientSecrets clientSecrets = new GoogleClientSecretsBuilder() .forApi(GoogleClientSecretsBuilder.Api.AD_MANAGER) .withClientSecrets("clientId", "clientSecret") .build(); assertNotNull(clientSecrets.getDetails()); assertEquals("clientId", clientSecrets.getDetails().getClientId()); assertEquals("clientSecret", clientSecrets.getDetails().getClientSecret()); }
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);  }