@Test public void testGetDescriptionField() { Assert.assertEquals("description", HpAlmTask.getDescriptionField("defect")); Assert.assertEquals("req-comment", HpAlmTask.getDescriptionField("requirement")); }
public static String getDescriptionField(String entityType) { if("defect".equals(entityType)) { return "description"; } else { return "req-comment"; } }
HpAlmTask extends Task { public static String getDescriptionField(String entityType) { if("defect".equals(entityType)) { return "description"; } else { return "req-comment"; } } }
HpAlmTask extends Task { public static String getDescriptionField(String entityType) { if("defect".equals(entityType)) { return "description"; } else { return "req-comment"; } } HpAlmTask(Project project, Entity entity); }
HpAlmTask extends Task { public static String getDescriptionField(String entityType) { if("defect".equals(entityType)) { return "description"; } else { return "req-comment"; } } HpAlmTask(Project project, Entity entity); boolean isInitialized(); String getId(); String getSummary(); String getDescription(); Comment[] getComments(); Icon getIcon(); TaskType getType(); Date getUpdated(); Date getCreated(); boolean isClosed(); String getCustomIcon(); boolean isIssue(); String getIssueUrl(); static Date parseDate(String dateStr); static String getDescriptionField(String entityType); }
HpAlmTask extends Task { public static String getDescriptionField(String entityType) { if("defect".equals(entityType)) { return "description"; } else { return "req-comment"; } } HpAlmTask(Project project, Entity entity); boolean isInitialized(); String getId(); String getSummary(); String getDescription(); Comment[] getComments(); Icon getIcon(); TaskType getType(); Date getUpdated(); Date getCreated(); boolean isClosed(); String getCustomIcon(); boolean isIssue(); String getIssueUrl(); static Date parseDate(String dateStr); static String getDescriptionField(String entityType);  }