@Test(expected = AuthorizeException.class) public void testSetLogoNoAuth() throws Exception { doThrow(new AuthorizeException()).when(authorizeServiceSpy).authorizeAction(context, c, Constants.WRITE); File f = new File(testProps.get("test.bitstream").toString()); communityService.setLogo(context, c, new FileInputStream(f)); fail("Exception expected"); }
void setLogo(Bitstream logo) { this.logo = logo; setModified(); }
Community extends DSpaceObject implements DSpaceObjectLegacySupport { void setLogo(Bitstream logo) { this.logo = logo; setModified(); } }
Community extends DSpaceObject implements DSpaceObjectLegacySupport { void setLogo(Bitstream logo) { this.logo = logo; setModified(); } protected  Community(); }
Community extends DSpaceObject implements DSpaceObjectLegacySupport { void setLogo(Bitstream logo) { this.logo = logo; setModified(); } protected  Community(); void removeSubCommunity(Community subCommunity); Bitstream getLogo(); Group getAdministrators(); List<Collection> getCollections(); List<Community> getSubcommunities(); List<Community> getParentCommunities(); void removeParentCommunity(Community parentCommunity); @Override boolean equals(Object other); @Override int hashCode(); @Override int getType(); @Override String getName(); @Override Integer getLegacyId(); }
Community extends DSpaceObject implements DSpaceObjectLegacySupport { void setLogo(Bitstream logo) { this.logo = logo; setModified(); } protected  Community(); void removeSubCommunity(Community subCommunity); Bitstream getLogo(); Group getAdministrators(); List<Collection> getCollections(); List<Community> getSubcommunities(); List<Community> getParentCommunities(); void removeParentCommunity(Community parentCommunity); @Override boolean equals(Object other); @Override int hashCode(); @Override int getType(); @Override String getName(); @Override Integer getLegacyId(); static final String COPYRIGHT_TEXT; static final String INTRODUCTORY_TEXT; static final String SHORT_DESCRIPTION; static final String SIDEBAR_TEXT; }