@Test public void testGetDescription() { Entity entity = new Entity("defect", 1); entity.setProperty("description", "<html><body>This is <b>html</b>.</body></html>"); HpAlmTask task = new HpAlmTask(getProject(), entity); Assert.assertEquals("This is html.", task.getDescription()); }
public String getDescription() { return HTMLAreaField.toPlainText(entity.getPropertyValue(getDescriptionField(entity.getType())), false); }
HpAlmTask extends Task { public String getDescription() { return HTMLAreaField.toPlainText(entity.getPropertyValue(getDescriptionField(entity.getType())), false); } }
HpAlmTask extends Task { public String getDescription() { return HTMLAreaField.toPlainText(entity.getPropertyValue(getDescriptionField(entity.getType())), false); } HpAlmTask(Project project, Entity entity); }
HpAlmTask extends Task { public String getDescription() { return HTMLAreaField.toPlainText(entity.getPropertyValue(getDescriptionField(entity.getType())), false); } 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 String getDescription() { return HTMLAreaField.toPlainText(entity.getPropertyValue(getDescriptionField(entity.getType())), false); } 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);  }