@Test public void testPost() { CreateLdapConfigRequest createLdapConfigRequest = createCreateLdapConfigRequest(); LdapConfig ldapConfig = createLdapConfig(); ArgumentCaptor<LdapConfig> ldapConfigParam = ArgumentCaptor.forClass(LdapConfig.class); Mockito.when(stringToSecretResponseConverter.convert(SECRET_BINDDN)).thenReturn(new SecretResponse("enginepath", "binddn-secretpath")); Mockito.when(stringToSecretResponseConverter.convert(SECRET_PWD)).thenReturn(new SecretResponse("enginepath", "pwd-secretpath")); Mockito.when(ldapConfigService.createLdapConfig(ldapConfigParam.capture())).thenReturn(ldapConfig); DescribeLdapConfigResponse actualResponse = underTest.post(createLdapConfigRequest); checkInnerLdapConfig(ldapConfigParam.getValue()); checkResponse(actualResponse); }
public DescribeLdapConfigResponse post(CreateLdapConfigRequest createLdapConfigRequest) { LdapConfig ldapConfig = convertCreateLdapConfigRequest(createLdapConfigRequest); ldapConfig = ldapConfigService.createLdapConfig(ldapConfig); return convertLdapConfigToDescribeLdapConfigResponse(ldapConfig); }
LdapConfigV1Service { public DescribeLdapConfigResponse post(CreateLdapConfigRequest createLdapConfigRequest) { LdapConfig ldapConfig = convertCreateLdapConfigRequest(createLdapConfigRequest); ldapConfig = ldapConfigService.createLdapConfig(ldapConfig); return convertLdapConfigToDescribeLdapConfigResponse(ldapConfig); } }
LdapConfigV1Service { public DescribeLdapConfigResponse post(CreateLdapConfigRequest createLdapConfigRequest) { LdapConfig ldapConfig = convertCreateLdapConfigRequest(createLdapConfigRequest); ldapConfig = ldapConfigService.createLdapConfig(ldapConfig); return convertLdapConfigToDescribeLdapConfigResponse(ldapConfig); }  }
LdapConfigV1Service { public DescribeLdapConfigResponse post(CreateLdapConfigRequest createLdapConfigRequest) { LdapConfig ldapConfig = convertCreateLdapConfigRequest(createLdapConfigRequest); ldapConfig = ldapConfigService.createLdapConfig(ldapConfig); return convertLdapConfigToDescribeLdapConfigResponse(ldapConfig); }  DescribeLdapConfigResponse post(CreateLdapConfigRequest createLdapConfigRequest); DescribeLdapConfigResponse describe(String environmentCrn); void delete(String environmentCrn); CreateLdapConfigRequest getCreateLdapConfigRequest(String environmentCrn); TestLdapConfigResponse testConnection(TestLdapConfigRequest testLdapConfigRequest); DescribeLdapConfigResponse getForCluster(String environmentCrn, String accountId, String clusterName); }
LdapConfigV1Service { public DescribeLdapConfigResponse post(CreateLdapConfigRequest createLdapConfigRequest) { LdapConfig ldapConfig = convertCreateLdapConfigRequest(createLdapConfigRequest); ldapConfig = ldapConfigService.createLdapConfig(ldapConfig); return convertLdapConfigToDescribeLdapConfigResponse(ldapConfig); }  DescribeLdapConfigResponse post(CreateLdapConfigRequest createLdapConfigRequest); DescribeLdapConfigResponse describe(String environmentCrn); void delete(String environmentCrn); CreateLdapConfigRequest getCreateLdapConfigRequest(String environmentCrn); TestLdapConfigResponse testConnection(TestLdapConfigRequest testLdapConfigRequest); DescribeLdapConfigResponse getForCluster(String environmentCrn, String accountId, String clusterName);  }