class: TransformPubItemTest

public class: TransformPubItemTest
Author: Johannes Müller (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 1956 $ $LastChangedDate: 2007-08-20 19:; Complexity: 1
Dates: Created: 16.07.2009 15:14:55; Modified: 16.07.2009 15:14:55;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {B21119CF-3255-43dd-AAF9-D13ECC13D85A}
Test of {@link XmlTransforming} methods for transforming PubItemVOs to XML and back.
 

Goto: Custom Properties, Fields, Methods

Extends: XmlTransformingTestBase

See also: XmlTransformingBean, XmlTransformingTestBase

Appears in: component

Connections
 
Custom Properties
 
TransformPubItemTest Attributes
Attribute Details
private static String
  ITEM_LIST1_FILE
Initial: TEST_FILE_ROOT + "item_list1.xml"
private static String
  JPG_FARBTEST_FILE
Initial: TEST_FILE_ROOT + "farbtest_wasserfarben.jpg"
private Logger
  logger
Initial: Logger.getLogger(getClass())
private static String
  RELEASED_ITEM_FILE
Initial: TEST_FILE_ROOT + "released_item_with_one_component.xml"
private static String
  SAVED_ITEM_FILE
Initial: TEST_FILE_ROOT + "saved_item1.xml"
private static String
  TEST_FILE_ROOT
Initial: "xmltransforming/component/transformPubItemTest/"
private static String
  WITHDRAWN_ITEM_FILE
Initial: TEST_FILE_ROOT + "withdrawn_item1.xml"
private static XmlTransformingBean
  xmlTransforming
Initial: new XmlTransformingBean()
 
TransformPubItemTest Methods
Operation Details
private
getFile():FileVO
Sequential
Tags: throws=Exception
Notes: @return
public
testRountripTransformPubItem1():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for checking the identity of a PubItem after being transformed to an item(XML) and back.
public
testRountripTransformPubItem2():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for checking the identity of a PubItem after being transformed to an item(VO) and back.
public
testTransformItemVO2XmlAndValidateXml():void
Sequential
Tags: annotations=@Test
throws=Exception
public
testTransformItemWithLocalTags():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for local tags.
public
testTransformReleasedItemToPubItemAndCheckLocalTags():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for {@link de.mpg.escidoc.services.common.xmltransforming.XmlTransformingBean#transformToItem(java.lang.String)}.
public
testTransformReleasedItemToPubItemAndCheckPID():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for {@link de.mpg.escidoc.services.common.xmltransforming.XmlTransformingBean#transformToItem(java.lang.String)}.
public
testTransformSavedItemToPubItemAndCheckCreator():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for checking the correct transformation of the creator in the metadata.
public
testTransformToItemAndCheckMetadata():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for {@link de.mpg.escidoc.services.common.xmltransforming.XmlTransformingBean#transformToItem(ItemVO)}; checks whether the metadata part meets the requirements.
public
testTransformToItemList():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test of {@link XmlTransforming#transformToItemList(List)}
public
testTransformToItemWithOneComponent():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for {@link de.mpg.escidoc.services.common.XmlTransforming#transformToItem(java.lang.String)}.
public
testTransformToPubItemList():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for checking the correct transformation of an item-list[XML] to a List<PubItemVO>.
public
testTransformWithdrawnItemToPubItem():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for checking the correct transformation of the creator in the metadata.