class: PubItemDepositingTest

public class: PubItemDepositingTest
Author: Miriam Doelle (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 1850 $ $LastChangedDate: 2008-12-17 13:; Complexity: 1
Dates: Created: 16.07.2009 15:31:32; Modified: 16.07.2009 15:31:32;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {2185E662-7B88-49ef-B0F8-0704DC6CEFB3}
Test class for {@link PubItemDepositing}
 

Goto: Custom Properties, Fields, Methods

Extends: TestBase

See also: PubItemDepositing, TestBase

Appears in: depositing

Connections
 
Custom Properties
 
PubItemDepositingTest Attributes
Attribute Details
private static const Logger
  logger
Initial: Logger.getLogger(PubItemDepositingTest.class)
Notes: Logger for this class.
private PubItemDepositing
  pmDepositing
private AccountUserVO
  user
private XmlTransforming
  xmlTransforming
 
PubItemDepositingTest Methods
Operation Details
private
savePubItem(
   PubItemVO initPubItem,
   AccountUserVO accountUser):PubItemVO
Sequential
Tags: throws=Exception
Notes: Helper: Saves the given pubItem using {@link PubItemDepositing#savePubItem(PubItemVO, AccountUserVO)} Changed by Peter Broszeit, 18.10.2007: asserts on item properties removed, because all items should be saved.
public
setUp():void
Sequential
Tags: annotations=@Before
throws=Exception
public
testAcceptExistingReleasedPubItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test for {@link PubItemDepositing#acceptPubItem(PubItemVO, String, de.mpg.escidoc.services.common.valueobjects.AccountUserVO)}
@author Peter Broszeit
public
testAcceptExistingSubmittedPubItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test for {@link PubItemDepositing#acceptPubItem(PubItemVO, String, de.mpg.escidoc.services.common.valueobjects.AccountUserVO)}
@author Peter Broszeit
public
testCreatePubItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test for {@link PubItemDepositing#createPubItem(ContextRO, de.mpg.escidoc.services.common.valueobjects.AccountUserVO)}.
public
testCreatePubItemWithoutCollection():void
Sequential
Tags: annotations=@Test(expected = IllegalArgumentException.class)
throws=Exception
Notes: Test for {@link PubItemDepositing#createPubItem(ContextRO, de.mpg.escidoc.services.common.valueobjects.AccountUserVO)}. with empty PubCollectionRef.
public
testCreateRevisionOfPubItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test for {@link PubItemDepositing#createRevisionOfItem(PubItemVO, String, ContextRO, AccountUserVO)}
@author Peter Broszeit
public
testDeletePendingAfterReleasedPubItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Checks if a pending item, that was released in a prior version, can be deleted.
@author Johannes Mueller
public
testDeletePubItem():void
Sequential
Tags: annotations=@Test(expected = ItemNotFoundException.class)
throws=Exception
Notes: Test for {@link PubItemDepositing#deletePubItem(ItemRO, de.mpg.escidoc.services.common.valueobjects.AccountUserVO)}
public
testDeleteSubmittedPubItem():void
Sequential
Tags: annotations=@Ignore("Does not work in R2, because submitPubItem alreday releases it.")@Test
throws=Exception
Notes: Test for {@link PubItemDepositing#deletePubItem(ItemRO, de.mpg.escidoc.services.common.valueobjects.AccountUserVO)}
public
testGetPubCollectionListForDepositing():void
Sequential
Tags: annotations=@Test@Ignore
throws=Exception
Notes: Test for {@link PubItemDepositing#getPubCollectionListForDepositing(AccountUserVO)}
public
testSaveExistingPendingPubItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test for {@link PubItemDepositing#savePubItem(PubItemVO, de.mpg.escidoc.services.common.valueobjects.AccountUserVO)} with already existing item.
public
testSaveExistingPubItemWithOtherUser():void
Sequential
Tags: annotations=@Ignore@Test(expected = AuthorizationException.class)
throws=Exception
Notes: Test for {@link PubItemDepositing#savePubItem(PubItemVO, de.mpg.escidoc.services.common.valueobjects.AccountUserVO)} with already existing item.
public
testSaveExistingPubItemWithWrongId():void
Sequential
Tags: annotations=@Test(expected = PubItemNotFoundException.class)
throws=Exception
Notes: Test for {@link PubItemDepositing#savePubItem(PubItemVO, de.mpg.escidoc.services.common.valueobjects.AccountUserVO)} with already existing item.
public
testSaveExistingReleasedPubItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test for {@link PubItemDepositing#savePubItem(PubItemVO, de.mpg.escidoc.services.common.valueobjects.AccountUserVO)} with already existing item.
@author Peter Broszeit
public
testSaveExistingSubmittedPubItem():void
Sequential
Tags: annotations=@Ignore("Does not work in R2, because submitPubItem also releases it.")@Test
throws=Exception
Notes: Test for {@link PubItemDepositing#savePubItem(PubItemVO, de.mpg.escidoc.services.common.valueobjects.AccountUserVO)} with already existing item.
@author Peter Broszeit
public
testSaveNewComplexPubItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test for {@link PubItemDepositing#savePubItem(PubItemVO, de.mpg.escidoc.services.common.valueobjects.AccountUserVO)} with new complex item.
public
testSaveNewComplexPubItemWithFile():void
Sequential
Tags: annotations=@Ignore("See http://www.escidoc-project.de/issueManagement/show_bug.cgi?id=596")@Test
throws=Exception
Notes: Test for {@link PubItemDepositing#savePubItem(PubItemVO, de.mpg.escidoc.services.common.valueobjects.AccountUserVO)} with new complex item and file.
public
testSaveNewPubItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test for {@link PubItemDepositing#savePubItem(PubItemVO, de.mpg.escidoc.services.common.valueobjects.AccountUserVO)} with new item.
public
testSubmitExistingPubItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test for {@link PubItemDepositing#submitPubItem(PubItemVO, de.mpg.escidoc.services.common.valueobjects.AccountUserVO)}
public
testSubmitExistingPubItemWithOtherUser():void
Sequential
Tags: annotations=@Test(expected = AuthorizationException.class)
throws=Exception
Notes: Test for {@link PubItemDepositing#submitPubItem(PubItemVO, de.mpg.escidoc.services.common.valueobjects.AccountUserVO)}
public
testSubmitNewPubItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test for {@link PubItemDepositing#submitPubItem(PubItemVO, de.mpg.escidoc.services.common.valueobjects.AccountUserVO)}
public
testUpdateRevisionOfPubItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test for {@link PubItemDepositing#createRevisionOfItem(PubItemVO, String, ContextRO, AccountUserVO)}
@author Peter Broszeit