@Test public void testDeletePositive() { CloudCredentialStatus status = underTest.delete(createAuthContext()); Assert.assertNotNull("The returned CloudCredentialStatus instance is null!", status); Assert.assertEquals("Invalid credential status has specified!", CredentialStatus.DELETED, status.getStatus()); }
@Override public CloudCredentialStatus delete(@Nonnull AuthenticatedContext authenticatedContext) { return new CloudCredentialStatus(authenticatedContext.getCloudCredential(), CredentialStatus.DELETED); }
GcpCredentialConnector implements CredentialConnector { @Override public CloudCredentialStatus delete(@Nonnull AuthenticatedContext authenticatedContext) { return new CloudCredentialStatus(authenticatedContext.getCloudCredential(), CredentialStatus.DELETED); } }
GcpCredentialConnector implements CredentialConnector { @Override public CloudCredentialStatus delete(@Nonnull AuthenticatedContext authenticatedContext) { return new CloudCredentialStatus(authenticatedContext.getCloudCredential(), CredentialStatus.DELETED); }  }
GcpCredentialConnector implements CredentialConnector { @Override public CloudCredentialStatus delete(@Nonnull AuthenticatedContext authenticatedContext) { return new CloudCredentialStatus(authenticatedContext.getCloudCredential(), CredentialStatus.DELETED); }  @Override CloudCredentialStatus verify(@Nonnull AuthenticatedContext authenticatedContext, CredentialVerificationContext credentialVerificationContext); @Override CloudCredentialStatus create(@Nonnull AuthenticatedContext authenticatedContext); @Override CloudCredentialStatus delete(@Nonnull AuthenticatedContext authenticatedContext); @Override CredentialPrerequisitesResponse getPrerequisites(CloudContext cloudContext, String externalId, String deploymentAddress, CredentialType type); }
GcpCredentialConnector implements CredentialConnector { @Override public CloudCredentialStatus delete(@Nonnull AuthenticatedContext authenticatedContext) { return new CloudCredentialStatus(authenticatedContext.getCloudCredential(), CredentialStatus.DELETED); }  @Override CloudCredentialStatus verify(@Nonnull AuthenticatedContext authenticatedContext, CredentialVerificationContext credentialVerificationContext); @Override CloudCredentialStatus create(@Nonnull AuthenticatedContext authenticatedContext); @Override CloudCredentialStatus delete(@Nonnull AuthenticatedContext authenticatedContext); @Override CredentialPrerequisitesResponse getPrerequisites(CloudContext cloudContext, String externalId, String deploymentAddress, CredentialType type);  }