class: TransformPubItemIntegrationTest

public class: TransformPubItemIntegrationTest
Author: Johannes Müller (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 645 $ $LastChangedDate: 2007-11-26 15:0; Complexity: 1
Dates: Created: 16.07.2009 15:15:25; Modified: 16.07.2009 15:15:25;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {B3F53B5A-FB7C-4efb-B346-AA21E8B29036}
Test of {@link PubManTransforming} methods for transforming and integration with common_logic and the framework.
 

Goto: Custom Properties, Fields, Methods

Extends: XmlTransformingTestBase

See also: AccountUserVO, XmlTransforming, XmlTransformingTestBase

Appears in: integration

Connections
 
Custom Properties
 
TransformPubItemIntegrationTest Attributes
Attribute Details
private static const String
  ITEM_LIST_SCHEMA_FILE
Initial: "xsd/soap/item/0.8/item-list.xsd"
private static const String
  ITEM_SCHEMA_FILE
Initial: "xsd/soap/item/0.8/item.xsd"
private static String
  ITEM_WITHOUT_COMPONENTS_FILE
Initial: TEST_FILE_ROOT + "item_without_components.xml"
private static String
  JPG_FARBTEST_FILE
Initial: TEST_FILE_ROOT + "farbtest_wasserfarben.jpg"
private Logger
  logger
Initial: Logger.getLogger(getClass())
private static String
  PDF_RUNAWAY_FILE
Initial: TEST_FILE_ROOT + "RunawayMassiveBinariesAndClusterEjectionScenarios.pdf"
private static const String
  PREDICATE_FEDORARELATIONSHIP
Initial: "http://www.escidoc.de/ontologies/mpdl-ontologies/content-relations#fedoraRelationship"
private static const String
  PREDICATE_ISMEMBEROF
Initial: "http://www.escidoc.de/ontologies/mpdl-ontologies/content-relations#isMemberOf"
private static const String
  PREDICATE_ISREVISIONOF
Initial: "http://www.escidoc.de/ontologies/mpdl-ontologies/content-relations#isRevisionOf"
private static String
  TEST_FILE_ROOT
Initial: "xmltransforming/integration/transformPubItemIntegrationTest/"
private AccountUserVO
  user
private String
  userHandle
private static const String
  WITHDRAWAL_COMMENT
Initial: "Withdrawal comment"
private static XmlTransforming
  xmlTransforming
 
TransformPubItemIntegrationTest Methods
Operation Details
public
setUp():void
Sequential
Tags: annotations=@Before
throws=Exception
Notes: Logs in as depositor and retrieves his grants (before every single test method).
public static
setUpBeforeClass():void
Sequential
Tags: annotations=@BeforeClass
throws=Exception
Notes: Get an {@link XmlTransforming} instance once.
public
tearDown():void
Sequential
Tags: annotations=@After
throws=Exception
Notes: Logs out (after every single test method).
public
testIllegalXMLCharacterTransforming():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Tests the transforming of "illegal" ("<" and "&") and problematic (">", "'", "?") XML characters into escaped XML tokens and back.
public
testRoundtripPubItemWithRelations():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Checks whether the transforming of an item with relations works properly.
public
testTransformToItemWithOneComponentCreate():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Tests the transformation of item[XML] (containing one component) to PubItemVO with a self-created item retrieved from the framework.
public
testTransformToItemWithOneComponentUpdate():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Creates an item with a file in the framework and updates the item.
public
testTransformToItemWithOneComponentUpdateWithChangedContentCategory():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Creates an item with a file in the framework, changes the content-category (=content type) and updates the item.
public
testTransformToItemWithoutComponentsCreate():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method #1 for {@link de.mpg.escidoc.services.common.XmlTransforming#transformToItem(PubItemVO)}.
public
testTransformToItemWithoutComponentsUpdate():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for {@link de.mpg.escidoc.services.common.XmlTransforming#transformToItem(PubItemVO)}.
public
testTransformToItemWithTwoComponentsCreate():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Tests the transformation of item[XML] (containing two components) to PubItemVO with a self-created item retrieved from the framework.
public
testTransformToItemWithTwoComponentsUpdate():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Creates an item with two files in the framework and updates the item.
public
testTransformToPubItemList():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for {@link de.mpg.escidoc.services.common.XmlTransforming#transformToPubItemList(java.lang.String)}.
public
testTransformToPubItemWithoutComponents2():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Tests the transformation of item[XML] (without components) to PubItemVO with a self-created item retrieved from the framework.
public
testTransformWithdrawnItemAndCheckComment():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method #1 for {@link de.mpg.escidoc.services.common.XmlTransforming#transformToItem(PubItemVO)}.
public
transformToPubItemWithoutComponents1():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Tests the transformation of item[XML] (without components) to PubItemVO with a self-created item retrieved from the framework.