@Test public void getMockRevocationReasons_Test() { CertResponse certResponse = nclmMockUtil.getMockRevocationReasons(); assertNotNull(certResponse); }
public CertResponse getMockRevocationReasons() { CertResponse certResponse = new CertResponse(); String revocationReason = "{\"time_enabled\":false,\"details_enabled\":false," + "\"reasons\":[{\"reason\":\"unspecified\",\"displayName\":\"Unspecified\"},{\"reason\":\"keyCompromise\",\"displayName\":\"Key compromise\"},{\"reason\":\"cACompromise\",\"displayName\":\"CA compromise\"},{\"reason\":\"affiliationChanged\",\"displayName\":\"Affiliation changed\"},{\"reason\":\"superseded\",\"displayName\":\"Superseded\"},{\"reason\":\"cessationOfOperation\",\"displayName\":\"Cessation of operation\"},{\"reason\":\"certificateHold\",\"displayName\":\"Certificate hold\"}]}"; certResponse.setSuccess(Boolean.TRUE); certResponse.setResponse(revocationReason); certResponse.setHttpstatus(HttpStatus.OK); return certResponse; }
NCLMMockUtil { public CertResponse getMockRevocationReasons() { CertResponse certResponse = new CertResponse(); String revocationReason = "{\"time_enabled\":false,\"details_enabled\":false," + "\"reasons\":[{\"reason\":\"unspecified\",\"displayName\":\"Unspecified\"},{\"reason\":\"keyCompromise\",\"displayName\":\"Key compromise\"},{\"reason\":\"cACompromise\",\"displayName\":\"CA compromise\"},{\"reason\":\"affiliationChanged\",\"displayName\":\"Affiliation changed\"},{\"reason\":\"superseded\",\"displayName\":\"Superseded\"},{\"reason\":\"cessationOfOperation\",\"displayName\":\"Cessation of operation\"},{\"reason\":\"certificateHold\",\"displayName\":\"Certificate hold\"}]}"; certResponse.setSuccess(Boolean.TRUE); certResponse.setResponse(revocationReason); certResponse.setHttpstatus(HttpStatus.OK); return certResponse; } }
NCLMMockUtil { public CertResponse getMockRevocationReasons() { CertResponse certResponse = new CertResponse(); String revocationReason = "{\"time_enabled\":false,\"details_enabled\":false," + "\"reasons\":[{\"reason\":\"unspecified\",\"displayName\":\"Unspecified\"},{\"reason\":\"keyCompromise\",\"displayName\":\"Key compromise\"},{\"reason\":\"cACompromise\",\"displayName\":\"CA compromise\"},{\"reason\":\"affiliationChanged\",\"displayName\":\"Affiliation changed\"},{\"reason\":\"superseded\",\"displayName\":\"Superseded\"},{\"reason\":\"cessationOfOperation\",\"displayName\":\"Cessation of operation\"},{\"reason\":\"certificateHold\",\"displayName\":\"Certificate hold\"}]}"; certResponse.setSuccess(Boolean.TRUE); certResponse.setResponse(revocationReason); certResponse.setHttpstatus(HttpStatus.OK); return certResponse; } NCLMMockUtil(); }
NCLMMockUtil { public CertResponse getMockRevocationReasons() { CertResponse certResponse = new CertResponse(); String revocationReason = "{\"time_enabled\":false,\"details_enabled\":false," + "\"reasons\":[{\"reason\":\"unspecified\",\"displayName\":\"Unspecified\"},{\"reason\":\"keyCompromise\",\"displayName\":\"Key compromise\"},{\"reason\":\"cACompromise\",\"displayName\":\"CA compromise\"},{\"reason\":\"affiliationChanged\",\"displayName\":\"Affiliation changed\"},{\"reason\":\"superseded\",\"displayName\":\"Superseded\"},{\"reason\":\"cessationOfOperation\",\"displayName\":\"Cessation of operation\"},{\"reason\":\"certificateHold\",\"displayName\":\"Certificate hold\"}]}"; certResponse.setSuccess(Boolean.TRUE); certResponse.setResponse(revocationReason); certResponse.setHttpstatus(HttpStatus.OK); return certResponse; } NCLMMockUtil(); CertResponse getRevocationMockResponse(); CertificateData getRenewCertificateMockData(); CertResponse getRenewMockResponse(); CertResponse getDeleteMockResponse(); CertificateData getDeleteCertMockResponse(Map<String, String>  metaDataParams); CertManagerLogin getMockLoginDetails(); CertResponse getEnrollMockResponse(); CertificateData getMockCertificateData(SSLCertificateRequest sslCertificateRequest); CertResponse getMockRevocationReasons(); CertificateData getMockDataForRevoked(); }
NCLMMockUtil { public CertResponse getMockRevocationReasons() { CertResponse certResponse = new CertResponse(); String revocationReason = "{\"time_enabled\":false,\"details_enabled\":false," + "\"reasons\":[{\"reason\":\"unspecified\",\"displayName\":\"Unspecified\"},{\"reason\":\"keyCompromise\",\"displayName\":\"Key compromise\"},{\"reason\":\"cACompromise\",\"displayName\":\"CA compromise\"},{\"reason\":\"affiliationChanged\",\"displayName\":\"Affiliation changed\"},{\"reason\":\"superseded\",\"displayName\":\"Superseded\"},{\"reason\":\"cessationOfOperation\",\"displayName\":\"Cessation of operation\"},{\"reason\":\"certificateHold\",\"displayName\":\"Certificate hold\"}]}"; certResponse.setSuccess(Boolean.TRUE); certResponse.setResponse(revocationReason); certResponse.setHttpstatus(HttpStatus.OK); return certResponse; } NCLMMockUtil(); CertResponse getRevocationMockResponse(); CertificateData getRenewCertificateMockData(); CertResponse getRenewMockResponse(); CertResponse getDeleteMockResponse(); CertificateData getDeleteCertMockResponse(Map<String, String>  metaDataParams); CertManagerLogin getMockLoginDetails(); CertResponse getEnrollMockResponse(); CertificateData getMockCertificateData(SSLCertificateRequest sslCertificateRequest); CertResponse getMockRevocationReasons(); CertificateData getMockDataForRevoked();  }