@Test public void testIsClosed() { Entity defect = new Entity("defect", 1); HpAlmTask task = new HpAlmTask(getProject(), defect); defect.setProperty("status", "Closed"); Assert.assertTrue(task.isClosed()); defect.setProperty("status", "Open"); Assert.assertFalse(task.isClosed()); Entity requirement = new Entity("requirement", 1); HpAlmTask task2 = new HpAlmTask(getProject(), requirement); Assert.assertFalse(task2.isClosed()); }
public boolean isClosed() { if("defect".equals(entity.getType())) { return "Closed".equals(entity.getPropertyValue("status")); } else { return false; } }
HpAlmTask extends Task { public boolean isClosed() { if("defect".equals(entity.getType())) { return "Closed".equals(entity.getPropertyValue("status")); } else { return false; } } }
HpAlmTask extends Task { public boolean isClosed() { if("defect".equals(entity.getType())) { return "Closed".equals(entity.getPropertyValue("status")); } else { return false; } } HpAlmTask(Project project, Entity entity); }
HpAlmTask extends Task { public boolean isClosed() { if("defect".equals(entity.getType())) { return "Closed".equals(entity.getPropertyValue("status")); } else { return 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 boolean isClosed() { if("defect".equals(entity.getType())) { return "Closed".equals(entity.getPropertyValue("status")); } else { return 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);  }