@Test public void testIsIssue() { Entity defect = new Entity("defect", 1); HpAlmTask task = new HpAlmTask(getProject(), defect); Assert.assertTrue(task.isIssue()); Entity requirement = new Entity("requirement", 1); HpAlmTask task2 = new HpAlmTask(getProject(), requirement); Assert.assertFalse(task2.isIssue()); }
public boolean isIssue() { return getType() == TaskType.BUG; }
HpAlmTask extends Task { public boolean isIssue() { return getType() == TaskType.BUG; } }
HpAlmTask extends Task { public boolean isIssue() { return getType() == TaskType.BUG; } HpAlmTask(Project project, Entity entity); }
HpAlmTask extends Task { public boolean isIssue() { return getType() == TaskType.BUG; } 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 boolean isIssue() { return getType() == TaskType.BUG; } 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);  }