class: TransformContainerIntegrationTest

public class: TransformContainerIntegrationTest
Author: Wilhelm Frank (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: 1.0; Complexity: 1
Dates: Created: 16.07.2009 15:15:24; Modified: 16.07.2009 15:15:24;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {1195550C-1CAF-4783-8E33-C7381E0EEDC9}
Test of {@link ContainerTransforming} 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
 
TransformContainerIntegrationTest Attributes
Attribute Details
private static String
  CONTAINER_FILE
Initial: TEST_FILE_ROOT + "container_with_members.xml"
private static const String
  CONTAINER_LIST_SCHEMA_FILE
Initial: "xsd/soap/container/0.7/container-list.xsd"
private static const String
  CONTAINER_SCHEMA_FILE
Initial: "xsd/soap/container/0.7/container.xsd"
private static const String
  JPG_FARBTEST_FILE
Initial: TEST_FILE_ROOT + "farbtest_wasserfarben.jpg"
private Logger
  logger
Initial: Logger.getLogger(getClass())
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/transformContainerIntegrationTest/"
private AccountUserVO
  user
private String
  userHandle
private static const String
  WITHDRAWAL_COMMENT
Initial: "Withdrawal comment"
private static XmlTransforming
  xmlTransforming
 
TransformContainerIntegrationTest 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
testRoundtripWithRelations():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Checks whether the transforming of an item with relations works properly.
public
testTransformToContainerList():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test method for {@link de.mpg.escidoc.services.common.XmlTransforming#transformToContainerList(java.lang.String)}.
public
testTransformToContainerWithMembers():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Tests the transformation of container[XML] to ContainerVO with a self-created container retrieved from the framework.
public
testTransformToContainerWithMembers2():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Tests the transformation of container[XML] (with members) to containerVO with a self-created container retrieved from the framework.
public
testTransformToContainerWithOneMembersCreate():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Tests the transformation of container[XML] (containing two members) to containerVO with a self-created container retrieved. from the framework.
public
testTransformToContainerWithOneMemberUpdate():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Creates a container with a member in the framework and updates the container.