@Test public void testFindTask_unassigned() throws Exception { HpAlmRepository repository = new HpAlmRepository(); Task task = repository.findTask("defect #86"); Assert.assertNull(task); }
public Task findTask(String taskName) throws Exception { if(!_assignProject()) { return null; } Entity entity = project.getComponent(EntityService.class).getEntity(new EntityRef(taskName)); return new HpAlmTask(project, entity); }
HpAlmRepository extends TaskRepository implements Comparable<HpAlmRepository> { public Task findTask(String taskName) throws Exception { if(!_assignProject()) { return null; } Entity entity = project.getComponent(EntityService.class).getEntity(new EntityRef(taskName)); return new HpAlmTask(project, entity); } }
HpAlmRepository extends TaskRepository implements Comparable<HpAlmRepository> { public Task findTask(String taskName) throws Exception { if(!_assignProject()) { return null; } Entity entity = project.getComponent(EntityService.class).getEntity(new EntityRef(taskName)); return new HpAlmTask(project, entity); } HpAlmRepository();  HpAlmRepository(String url, long id); }
HpAlmRepository extends TaskRepository implements Comparable<HpAlmRepository> { public Task findTask(String taskName) throws Exception { if(!_assignProject()) { return null; } Entity entity = project.getComponent(EntityService.class).getEntity(new EntityRef(taskName)); return new HpAlmTask(project, entity); } HpAlmRepository();  HpAlmRepository(String url, long id); void setId(long id); @Tag("defect") TaskConfig getDefect(); void setDefect(TaskConfig defect); @Tag("requirement") TaskConfig getRequirement(); void setRequirement(TaskConfig requirement); @Attribute("id") long getId(); String getPresentableName(); boolean isConfigured(); Task[] getIssues(String query, int max, long since); @Override void setPreferredOpenTaskState(@Nullable CustomTaskState customTaskState); @Nullable @Override CustomTaskState getPreferredOpenTaskState(); @Override void setPreferredCloseTaskState(@Nullable CustomTaskState customTaskState); @Nullable @Override CustomTaskState getPreferredCloseTaskState(); Task findTask(String taskName); String extractId(String taskName); HpAlmRepository clone(); boolean equals(Object o); int hashCode(); int compareTo(HpAlmRepository other); }
HpAlmRepository extends TaskRepository implements Comparable<HpAlmRepository> { public Task findTask(String taskName) throws Exception { if(!_assignProject()) { return null; } Entity entity = project.getComponent(EntityService.class).getEntity(new EntityRef(taskName)); return new HpAlmTask(project, entity); } HpAlmRepository();  HpAlmRepository(String url, long id); void setId(long id); @Tag("defect") TaskConfig getDefect(); void setDefect(TaskConfig defect); @Tag("requirement") TaskConfig getRequirement(); void setRequirement(TaskConfig requirement); @Attribute("id") long getId(); String getPresentableName(); boolean isConfigured(); Task[] getIssues(String query, int max, long since); @Override void setPreferredOpenTaskState(@Nullable CustomTaskState customTaskState); @Nullable @Override CustomTaskState getPreferredOpenTaskState(); @Override void setPreferredCloseTaskState(@Nullable CustomTaskState customTaskState); @Nullable @Override CustomTaskState getPreferredCloseTaskState(); Task findTask(String taskName); String extractId(String taskName); HpAlmRepository clone(); boolean equals(Object o); int hashCode(); int compareTo(HpAlmRepository other);  }