@Test public void testDeleteAdmin() throws SQLException, AuthorizeException { when(authorizeServiceSpy.isAdmin(context)).thenReturn(true); BitstreamFormat bitstreamFormat = bitstreamFormatService.create(context); int toDeleteIdentifier = bitstreamFormat.getID(); bitstreamFormatService.delete(context, bitstreamFormat); BitstreamFormat b = bitstreamFormatService.find(context, toDeleteIdentifier); assertThat("testDeleteAdmin 0", b, nullValue()); }
public final Integer getID() { return id; }
BitstreamFormat implements Serializable, ReloadableEntity<Integer> { public final Integer getID() { return id; } }
BitstreamFormat implements Serializable, ReloadableEntity<Integer> { public final Integer getID() { return id; } protected  BitstreamFormat(); }
BitstreamFormat implements Serializable, ReloadableEntity<Integer> { public final Integer getID() { return id; } protected  BitstreamFormat(); final Integer getID(); String getShortDescription(); String getDescription(); void setDescription(String s); String getMIMEType(); void setMIMEType(String s); int getSupportLevel(); boolean isInternal(); void setInternal(boolean b); List<String> getExtensions(); void setExtensions(List<String> exts); void setShortDescription(Context context, String s); void setSupportLevel(int sl); @Override boolean equals(Object other); @Override int hashCode(); }
BitstreamFormat implements Serializable, ReloadableEntity<Integer> { public final Integer getID() { return id; } protected  BitstreamFormat(); final Integer getID(); String getShortDescription(); String getDescription(); void setDescription(String s); String getMIMEType(); void setMIMEType(String s); int getSupportLevel(); boolean isInternal(); void setInternal(boolean b); List<String> getExtensions(); void setExtensions(List<String> exts); void setShortDescription(Context context, String s); void setSupportLevel(int sl); @Override boolean equals(Object other); @Override int hashCode(); @Transient
    static final int UNKNOWN; @Transient
    static final int KNOWN; @Transient
    static final int SUPPORTED; }