@Test public void testGetType() { Entity defect = new Entity("defect", 1); HpAlmTask task = new HpAlmTask(getProject(), defect); Assert.assertEquals(TaskType.BUG, task.getType()); Entity requirement = new Entity("requirement", 1); HpAlmTask task2 = new HpAlmTask(getProject(), requirement); Assert.assertEquals(TaskType.FEATURE, task2.getType()); }
public TaskType getType() { if("defect".equals(entity.getType())) { return TaskType.BUG; } else { return TaskType.FEATURE; } }
HpAlmTask extends Task { public TaskType getType() { if("defect".equals(entity.getType())) { return TaskType.BUG; } else { return TaskType.FEATURE; } } }
HpAlmTask extends Task { public TaskType getType() { if("defect".equals(entity.getType())) { return TaskType.BUG; } else { return TaskType.FEATURE; } } HpAlmTask(Project project, Entity entity); }
HpAlmTask extends Task { public TaskType getType() { if("defect".equals(entity.getType())) { return TaskType.BUG; } else { return TaskType.FEATURE; } } 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 TaskType getType() { if("defect".equals(entity.getType())) { return TaskType.BUG; } else { return TaskType.FEATURE; } } 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);  }