class: PubItemPublishingTest

public class: PubItemPublishingTest
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:36; Modified: 16.07.2009 15:31:36;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {4A6138BC-2D90-4696-92EE-368186D240CB}
Test class for {@link PubItemPublishing}
 

Goto: Custom Properties, Fields, Methods

Extends: TestBase

See also: PubItemDepositing, PubItemPublishing, TestBase

Appears in: publishing

Connections
 
Custom Properties
 
PubItemPublishingTest Attributes
Attribute Details
private AccountUserVO
  otherUser
private static PubItemDepositing
  pmDepositing
private static PubItemPublishing
  pmPublishing
private AccountUserVO
  user
 
PubItemPublishingTest Methods
Operation Details
public
setUp():void
Sequential
Tags: annotations=@Before
throws=Exception
Notes: The setUp method for setting the needed values of the variables used in that test.
public
testReleasePendingPubItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test of {@link PubItemPublishing#releasePubItem(ItemRO, java.util.Date, AccountUserVO)} with invald state.
public
testReleasePubItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test of {@link PubItemPublishing#releasePubItem(ItemRO, java.util.Date, AccountUserVO)}
public
testReleasePubItemWithFile():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test of {@link PubItemPublishing#releasePubItem(ItemRO, java.util.Date, AccountUserVO)}
public
testWithdrawPendingPubItem():void
Sequential
Tags: annotations=@Test(expected = PubItemStatusInvalidException.class)
throws=Exception
Notes: Test of {@link PubItemPublishing#withdrawPubItem(ItemRO, java.util.Date, String, AccountUserVO)} with invalid state.
public
testWithdrawPubItem():void
Sequential
Tags: annotations=@Ignore("Expected error not clear.")@Test(expected = ItemNotFoundException.class)
throws=Exception
Notes: Test of {@link PubItemPublishing#withdrawPubItem(ItemRO, java.util.Date, String, AccountUserVO)}
public const
testWithdrawReleasedPubItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test of {@link PubItemPublishing#withdrawPubItem(ItemRO, java.util.Date, String, AccountUserVO)} with valid state.
public const
testWithdrawReleasedPubItemWithAdminUser():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test of {@link PubItemPublishing#withdrawPubItem(ItemRO, java.util.Date, String, AccountUserVO)} with valid state.
public const
testWithdrawReleasedPubItemWithWrongUser():void
Sequential
Tags: annotations=@Ignore("At the moment, no user exists in the framework who hasn't the rights to withdraw an item.")@Test(expected = SecurityException.class)
throws=Exception
Notes: Test of {@link PubItemPublishing#withdrawPubItem(ItemRO, java.util.Date, String, AccountUserVO)} with valid state.