@Test public void testFindByEPerson() throws Exception { EPerson ep = context.getCurrentUser(); List<WorkspaceItem> found = workspaceItemService.findByEPerson(context, ep); assertThat("testFindByEPerson 0", found, notNullValue()); assertTrue("testFindByEPerson 1", found.size() >= 1); boolean exists = false; for (WorkspaceItem w : found) { if (w.equals(wi)) { exists = true; } } assertTrue("testFindByEPerson 2", exists); }
@Override public boolean equals(Object o) { if (this == o) { return true; } Class<?> objClass = HibernateProxyHelper.getClassWithoutInitializingProxy(o); if (!getClass().equals(objClass)) { return false; } final WorkspaceItem that = (WorkspaceItem) o; if (!this.getID().equals(that.getID())) { return false; } return true; }
WorkspaceItem implements InProgressSubmission, Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } Class<?> objClass = HibernateProxyHelper.getClassWithoutInitializingProxy(o); if (!getClass().equals(objClass)) { return false; } final WorkspaceItem that = (WorkspaceItem) o; if (!this.getID().equals(that.getID())) { return false; } return true; } }
WorkspaceItem implements InProgressSubmission, Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } Class<?> objClass = HibernateProxyHelper.getClassWithoutInitializingProxy(o); if (!getClass().equals(objClass)) { return false; } final WorkspaceItem that = (WorkspaceItem) o; if (!this.getID().equals(that.getID())) { return false; } return true; } protected  WorkspaceItem(); }
WorkspaceItem implements InProgressSubmission, Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } Class<?> objClass = HibernateProxyHelper.getClassWithoutInitializingProxy(o); if (!getClass().equals(objClass)) { return false; } final WorkspaceItem that = (WorkspaceItem) o; if (!this.getID().equals(that.getID())) { return false; } return true; } protected  WorkspaceItem(); @Override Integer getID(); int getStageReached(); void setStageReached(int v); int getPageReached(); void setPageReached(int v); @Override boolean equals(Object o); @Override int hashCode(); @Override Item getItem(); @Override Collection getCollection(); @Override EPerson getSubmitter(); @Override boolean hasMultipleFiles(); @Override void setMultipleFiles(boolean b); @Override boolean hasMultipleTitles(); @Override void setMultipleTitles(boolean b); @Override boolean isPublishedBefore(); @Override void setPublishedBefore(boolean b); List<Group> getSupervisorGroups(); }
WorkspaceItem implements InProgressSubmission, Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } Class<?> objClass = HibernateProxyHelper.getClassWithoutInitializingProxy(o); if (!getClass().equals(objClass)) { return false; } final WorkspaceItem that = (WorkspaceItem) o; if (!this.getID().equals(that.getID())) { return false; } return true; } protected  WorkspaceItem(); @Override Integer getID(); int getStageReached(); void setStageReached(int v); int getPageReached(); void setPageReached(int v); @Override boolean equals(Object o); @Override int hashCode(); @Override Item getItem(); @Override Collection getCollection(); @Override EPerson getSubmitter(); @Override boolean hasMultipleFiles(); @Override void setMultipleFiles(boolean b); @Override boolean hasMultipleTitles(); @Override void setMultipleTitles(boolean b); @Override boolean isPublishedBefore(); @Override void setPublishedBefore(boolean b); List<Group> getSupervisorGroups();  }