@Test(expected=SQLException.class) public void testInstallItem_invalidHandle() throws Exception { new NonStrictExpectations() { AuthorizeManager authManager; { AuthorizeManager.authorizeActionBoolean((Context) any, (Community) any, Constants.ADD); result = false; AuthorizeManager.isAdmin((Context) any); result = true; } }; String handle = "1345/567"; Collection col = Collection.create(context); WorkspaceItem is = WorkspaceItem.create(context, col, false); WorkspaceItem is2 = WorkspaceItem.create(context, col, false); Item result1 = InstallItem.installItem(context, is, handle); Item result2 = InstallItem.installItem(context, is2, handle); fail("Exception expected"); }
public static Item installItem(Context c, InProgressSubmission is) throws SQLException, IOException, AuthorizeException { return installItem(c, is, null); }
InstallItem { public static Item installItem(Context c, InProgressSubmission is) throws SQLException, IOException, AuthorizeException { return installItem(c, is, null); } }
InstallItem { public static Item installItem(Context c, InProgressSubmission is) throws SQLException, IOException, AuthorizeException { return installItem(c, is, null); }  }
InstallItem { public static Item installItem(Context c, InProgressSubmission is) throws SQLException, IOException, AuthorizeException { return installItem(c, is, null); }  static Item installItem(Context c, InProgressSubmission is); static Item installItem(Context c, InProgressSubmission is,
            String suppliedHandle); static Item restoreItem(Context c, InProgressSubmission is,
            String suppliedHandle); static String getBitstreamProvenanceMessage(Item myitem); }
InstallItem { public static Item installItem(Context c, InProgressSubmission is) throws SQLException, IOException, AuthorizeException { return installItem(c, is, null); }  static Item installItem(Context c, InProgressSubmission is); static Item installItem(Context c, InProgressSubmission is,
            String suppliedHandle); static Item restoreItem(Context c, InProgressSubmission is,
            String suppliedHandle); static String getBitstreamProvenanceMessage(Item myitem);  }