class: TestItem

public class: TestItem
Author: Johannes Mueller (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 325 $ $LastChangedDate: 2007-11-28 18:0; Complexity: 1
Dates: Created: 16.07.2009 15:16:56; Modified: 16.07.2009 15:16:56;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {36B82445-3933-444d-AFFE-BDFE165E702C}
Testcases for the basic service ItemHandler.
 

Goto: Custom Properties, Fields, Methods

Extends: TestItemBase

See also: TestItemBase

Appears in: om

Connections
 
Custom Properties
 
TestItem Attributes
Attribute Details
private Logger
  logger
Initial: Logger.getLogger(getClass())
 
TestItem Methods
Operation Details
public
assignPidToContentItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for {@link de.escidoc.www.services.om.ItemHandlerLocal#assignVersionPid
public
assignPidToContentItemNotExisting():void
Sequential
Tags: annotations=@Test(expected = ItemNotFoundException.class)
throws=Exception
Notes: Test method for {@link de.escidoc.www.services.om.ItemHandlerLocal#assignVersionPid
public
createContentItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for {@link de.escidoc.www.services.om.ItemHandlerLocal#create(java.lang.String)}.
public
deleteContentItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for {@link de.escidoc.www.services.om.ItemHandlerLocal#delete(java.lang.String)}.
public
deleteContentItemNotExisting():void
Sequential
Tags: annotations=@Test(expected = ItemNotFoundException.class)
throws=Exception
Notes: Test method for {@link de.escidoc.www.services.om.ItemHandlerLocal#delete(java.lang.String)}.
public
modifyContentItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for {@link de.escidoc.www.services.om.ItemHandlerLocal#update(java.lang.String,java.lang.String)}.
public
releaseContentItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for {@link de.escidoc.www.services.om.ItemHandlerLocal#release(java.lang.String,java.lang.String)}.
public
releaseContentItemNotExisting():void
Sequential
Tags: annotations=@Test(expected = ItemNotFoundException.class)
throws=Exception
Notes: Test method for {@link de.escidoc.www.services.om.ItemHandlerLocal#release(java.lang.String,java.lang.String)}.
public
retrieveContentItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for {@link de.escidoc.www.services.om.ItemHandlerLocal#retrieve(java.lang.String)}.
public
retrieveContentItemByPid():void
Sequential
Tags: annotations=@Ignore("Because of bug #xxx")@Test
throws=Exception
Notes: Test method for {@link de.escidoc.www.services.om.ItemHandlerLocal#retrieve(java.lang.String)}.
public
retrieveContentItemHistory():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for {@link de.escidoc.www.services.om.ItemHandlerLocal#retrieveVersionHistory(java.lang.String)}.
public
retrieveContentItemHistoryNotExisting():void
Sequential
Tags: annotations=@Test(expected = ItemNotFoundException.class)
throws=Exception
Notes: Test method for {@link de.escidoc.www.services.om.ItemHandlerLocal#retrieveVersionHistory(java.lang.String)}.
public
retrieveContentItemNotExisting():void
Sequential
Tags: annotations=@Test(expected = ItemNotFoundException.class)
throws=Exception
Notes: Test method for {@link de.escidoc.www.services.om.ItemHandlerLocal#retrieve(java.lang.String)}.
public
submitContentItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for {@link de.escidoc.www.services.om.ItemHandlerLocal#submit(java.lang.String,java.lang.String)}.
public
submitContentItemNotExisting():void
Sequential
Tags: annotations=@Test(expected = ItemNotFoundException.class)
throws=Exception
Notes: Test method for {@link de.escidoc.www.services.om.ItemHandlerLocal#submit(java.lang.String,java.lang.String)}.
public
updateContentItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for {@link de.escidoc.www.services.om.ItemHandlerLocal#update(java.lang.String,java.lang.String)}.
public
updateContentItemNotExisting():void
Sequential
Tags: annotations=@Test(expected = ItemNotFoundException.class)
throws=Exception
Notes: Test method for {@link de.escidoc.www.services.om.ItemHandlerLocal#update(java.lang.String,java.lang.String)}.
public
withdrawContentItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for {@link de.escidoc.www.services.om.ItemHandlerLocal#release(java.lang.String,java.lang.String)}.
public
withdrawContentItemNotAuthorized():void
Sequential
Tags: annotations=@Test(expected = InvalidXmlException.class)
throws=Exception
Notes: @Test(expected = AuthorizationException.class)
public
withdrawContentItemNotExisting():void
Sequential
Tags: annotations=@Test(expected = ItemNotFoundException.class)
throws=Exception
Notes: Test method for {@link de.escidoc.www.services.om.ItemHandlerLocal#release(java.lang.String,java.lang.String)}.