@Test public void testFindAll() throws Exception { List<Collection> all = collectionService.findAll(context); assertThat("testFindAll 0", all, notNullValue()); assertTrue("testFindAll 1", all.size() >= 1); boolean added = false; for (Collection cl : all) { if (cl.equals(collection)) { added = true; } } assertTrue("testFindAll 2", added); }
@Override public boolean equals(Object other) { if (other == null) { return false; } Class<?> objClass = HibernateProxyHelper.getClassWithoutInitializingProxy(other); if (this.getClass() != objClass) { return false; } final Collection otherCollection = (Collection) other; if (!this.getID().equals(otherCollection.getID())) { return false; } return true; }
Collection extends DSpaceObject implements DSpaceObjectLegacySupport { @Override public boolean equals(Object other) { if (other == null) { return false; } Class<?> objClass = HibernateProxyHelper.getClassWithoutInitializingProxy(other); if (this.getClass() != objClass) { return false; } final Collection otherCollection = (Collection) other; if (!this.getID().equals(otherCollection.getID())) { return false; } return true; } }
Collection extends DSpaceObject implements DSpaceObjectLegacySupport { @Override public boolean equals(Object other) { if (other == null) { return false; } Class<?> objClass = HibernateProxyHelper.getClassWithoutInitializingProxy(other); if (this.getClass() != objClass) { return false; } final Collection otherCollection = (Collection) other; if (!this.getID().equals(otherCollection.getID())) { return false; } return true; } protected  Collection(); }
Collection extends DSpaceObject implements DSpaceObjectLegacySupport { @Override public boolean equals(Object other) { if (other == null) { return false; } Class<?> objClass = HibernateProxyHelper.getClassWithoutInitializingProxy(other); if (this.getClass() != objClass) { return false; } final Collection otherCollection = (Collection) other; if (!this.getID().equals(otherCollection.getID())) { return false; } return true; } protected  Collection(); @Override String getName(); Bitstream getLogo(); Group getSubmitters(); Group getAdministrators(); Group getWorkflowStep1(Context context); Group getWorkflowStep2(Context context); Group getWorkflowStep3(Context context); String getLicenseCollection(); void setLicense(Context context, String license); Item getTemplateItem(); List<Community> getCommunities(); @Override boolean equals(Object other); @Override int hashCode(); @Override int getType(); void setWorkflowGroup(Context context, int step, Group g); @Override Integer getLegacyId(); }
Collection extends DSpaceObject implements DSpaceObjectLegacySupport { @Override public boolean equals(Object other) { if (other == null) { return false; } Class<?> objClass = HibernateProxyHelper.getClassWithoutInitializingProxy(other); if (this.getClass() != objClass) { return false; } final Collection otherCollection = (Collection) other; if (!this.getID().equals(otherCollection.getID())) { return false; } return true; } protected  Collection(); @Override String getName(); Bitstream getLogo(); Group getSubmitters(); Group getAdministrators(); Group getWorkflowStep1(Context context); Group getWorkflowStep2(Context context); Group getWorkflowStep3(Context context); String getLicenseCollection(); void setLicense(Context context, String license); Item getTemplateItem(); List<Community> getCommunities(); @Override boolean equals(Object other); @Override int hashCode(); @Override int getType(); void setWorkflowGroup(Context context, int step, Group g); @Override Integer getLegacyId(); @Transient
    static final String COPYRIGHT_TEXT; @Transient
    static final String INTRODUCTORY_TEXT; @Transient
    static final String SHORT_DESCRIPTION; @Transient
    static final String SIDEBAR_TEXT; @Transient
    static final String PROVENANCE_TEXT; }