@Test public void testIsInitialized() { Entity entity = new Entity("defect", 1); entity.setProperty("name", "Name..."); entity.setProperty("description", "Description..."); entity.setProperty("dev-comments", "comments..."); entity.setProperty("last-modified", "2012-12-12 12:12:12"); entity.setProperty("creation-time", "2012-12-01"); HpAlmTask task = new HpAlmTask(getProject(), entity); Assert.assertTrue(task.isInitialized()); }
public boolean isInitialized() { return entity.isComplete() || (entity.isInitialized("name") && hasDateProperties(entity) && entity.isInitialized(getDescriptionField(entity.getType())) && (entity.isInitialized("dev-comments") || entity.isInitialized("comments"))); }
HpAlmTask extends Task { public boolean isInitialized() { return entity.isComplete() || (entity.isInitialized("name") && hasDateProperties(entity) && entity.isInitialized(getDescriptionField(entity.getType())) && (entity.isInitialized("dev-comments") || entity.isInitialized("comments"))); } }
HpAlmTask extends Task { public boolean isInitialized() { return entity.isComplete() || (entity.isInitialized("name") && hasDateProperties(entity) && entity.isInitialized(getDescriptionField(entity.getType())) && (entity.isInitialized("dev-comments") || entity.isInitialized("comments"))); } HpAlmTask(Project project, Entity entity); }
HpAlmTask extends Task { public boolean isInitialized() { return entity.isComplete() || (entity.isInitialized("name") && hasDateProperties(entity) && entity.isInitialized(getDescriptionField(entity.getType())) && (entity.isInitialized("dev-comments") || entity.isInitialized("comments"))); } 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 isInitialized() { return entity.isComplete() || (entity.isInitialized("name") && hasDateProperties(entity) && entity.isInitialized(getDescriptionField(entity.getType())) && (entity.isInitialized("dev-comments") || entity.isInitialized("comments"))); } 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);  }