@Test public void testCreationFailure() { handler.addRequest("POST", "/qcbin/rest/domains/domain/projects/project/apmuiservices/additemservice/createdefectinrelease", 500) .responseBody("Bad day"); Entity defect = apmUIService.createDefectInRelease("something", "somewhat", "2-High", "me", 1001, 1001, 101, 1439, 1200); Assert.assertNull(defect); checkError("Bad day"); }
public Entity createDefectInRelease(String description, String summary, String severity, String detectedBy, int releaseId, int sprintId, int teamId, int featureId, int workspaceId) { StringBuffer buf = new StringBuffer(); buf.append("description=").append(EntityQuery.encode(description)); buf.append("&detectedBy=").append(EntityQuery.encode(detectedBy)); buf.append("&detectedOn="); buf.append("&featureID=").append(featureId > 0? featureId: 0); buf.append("&name=").append(EntityQuery.encode(summary)); buf.append("&releaseId=").append(releaseId); buf.append("&sevirity=").append(EntityQuery.encode(severity)); buf.append("&sprintID=").append(sprintId); buf.append("&teamID=").append(teamId); buf.append("&productGroupId=").append(workspaceId); return createItem("apmuiservices/additemservice/createdefectinrelease", buf.toString()); }
ApmUIService { public Entity createDefectInRelease(String description, String summary, String severity, String detectedBy, int releaseId, int sprintId, int teamId, int featureId, int workspaceId) { StringBuffer buf = new StringBuffer(); buf.append("description=").append(EntityQuery.encode(description)); buf.append("&detectedBy=").append(EntityQuery.encode(detectedBy)); buf.append("&detectedOn="); buf.append("&featureID=").append(featureId > 0? featureId: 0); buf.append("&name=").append(EntityQuery.encode(summary)); buf.append("&releaseId=").append(releaseId); buf.append("&sevirity=").append(EntityQuery.encode(severity)); buf.append("&sprintID=").append(sprintId); buf.append("&teamID=").append(teamId); buf.append("&productGroupId=").append(workspaceId); return createItem("apmuiservices/additemservice/createdefectinrelease", buf.toString()); } }
ApmUIService { public Entity createDefectInRelease(String description, String summary, String severity, String detectedBy, int releaseId, int sprintId, int teamId, int featureId, int workspaceId) { StringBuffer buf = new StringBuffer(); buf.append("description=").append(EntityQuery.encode(description)); buf.append("&detectedBy=").append(EntityQuery.encode(detectedBy)); buf.append("&detectedOn="); buf.append("&featureID=").append(featureId > 0? featureId: 0); buf.append("&name=").append(EntityQuery.encode(summary)); buf.append("&releaseId=").append(releaseId); buf.append("&sevirity=").append(EntityQuery.encode(severity)); buf.append("&sprintID=").append(sprintId); buf.append("&teamID=").append(teamId); buf.append("&productGroupId=").append(workspaceId); return createItem("apmuiservices/additemservice/createdefectinrelease", buf.toString()); } ApmUIService(RestService restService, EntityService entityService, ErrorService errorService); }
ApmUIService { public Entity createDefectInRelease(String description, String summary, String severity, String detectedBy, int releaseId, int sprintId, int teamId, int featureId, int workspaceId) { StringBuffer buf = new StringBuffer(); buf.append("description=").append(EntityQuery.encode(description)); buf.append("&detectedBy=").append(EntityQuery.encode(detectedBy)); buf.append("&detectedOn="); buf.append("&featureID=").append(featureId > 0? featureId: 0); buf.append("&name=").append(EntityQuery.encode(summary)); buf.append("&releaseId=").append(releaseId); buf.append("&sevirity=").append(EntityQuery.encode(severity)); buf.append("&sprintID=").append(sprintId); buf.append("&teamID=").append(teamId); buf.append("&productGroupId=").append(workspaceId); return createItem("apmuiservices/additemservice/createdefectinrelease", buf.toString()); } ApmUIService(RestService restService, EntityService entityService, ErrorService errorService); Entity createDefectInRelease(String description, String summary, String severity, String detectedBy,
                                        int releaseId, int sprintId, int teamId, int featureId, int workspaceId); Entity createRequirementInRelease(String description, String name, String priority, int storyPoints,
                                             int releaseId, int sprintId, int teamId, int featureId, int workspaceId); AuthenticationInfo getAuthenticationInfo(); }
ApmUIService { public Entity createDefectInRelease(String description, String summary, String severity, String detectedBy, int releaseId, int sprintId, int teamId, int featureId, int workspaceId) { StringBuffer buf = new StringBuffer(); buf.append("description=").append(EntityQuery.encode(description)); buf.append("&detectedBy=").append(EntityQuery.encode(detectedBy)); buf.append("&detectedOn="); buf.append("&featureID=").append(featureId > 0? featureId: 0); buf.append("&name=").append(EntityQuery.encode(summary)); buf.append("&releaseId=").append(releaseId); buf.append("&sevirity=").append(EntityQuery.encode(severity)); buf.append("&sprintID=").append(sprintId); buf.append("&teamID=").append(teamId); buf.append("&productGroupId=").append(workspaceId); return createItem("apmuiservices/additemservice/createdefectinrelease", buf.toString()); } ApmUIService(RestService restService, EntityService entityService, ErrorService errorService); Entity createDefectInRelease(String description, String summary, String severity, String detectedBy,
                                        int releaseId, int sprintId, int teamId, int featureId, int workspaceId); Entity createRequirementInRelease(String description, String name, String priority, int storyPoints,
                                             int releaseId, int sprintId, int teamId, int featureId, int workspaceId); AuthenticationInfo getAuthenticationInfo();  }