class: TransformContextTest

public class: TransformContextTest
Author: Miriam Doelle (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 1951 $ $LastChangedDate: 2009-05-07 10:; Complexity: 1
Dates: Created: 16.07.2009 15:14:53; Modified: 16.07.2009 15:14:53;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {93708A12-FD82-4281-ACB2-52C9662D0EC3}
Test for pubCollection transforming of {@link XmlTransforming}.
 

Goto: Custom Properties, Fields, Methods

Extends: TestBase

See also: XmlTransformingBean, TestBase

Appears in: component

Connections
 
Custom Properties
 
TransformContextTest Attributes
Attribute Details
private static const String
  CONTEXT_FULL_SAMPLE_FILE
Initial: TEST_FILE_ROOT + "context_full_sample.xml"
private static const String
  CONTEXT_LIST_SAMPLE_FILE
Initial: TEST_FILE_ROOT + "context-list_sample.xml"
private static const String
  CONTEXT_SAMPLE_FILE
Initial: TEST_FILE_ROOT + "context_sample.xml"
private Logger
  logger
Initial: Logger.getLogger(getClass())
private static const String
  MEMBER_LIST_SAMPLE_FILE
Initial: TEST_FILE_ROOT + "member-list_sample.xml"
private static const String
  TEST_FILE_ROOT
Initial: "xmltransforming/component/transformContextTest/"
private static XmlTransformingBean
  xmlTransforming
Initial: new XmlTransformingBean()
Notes: An instance of XmlTransforming.
 
TransformContextTest Methods
Operation Details
private
getExpectedContext():ContextVO
Sequential
Notes: Delivers a well-defined pubCollection.
@return The well-defined pubCollection.
public
testTransformToContext():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test for {@link XmlTransforming#transformToPubCollection(String)}. Reads pubCollection (=context) [XML] from file, transforms the pubCollection to ContextVO and checks the results.
public
testTransformToContextFull():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test for {@link XmlTransforming#transformToPubCollection(String)}. Reads pubCollection (=context) [XML] from file, transforms the pubCollection to ContextVO and checks the results.
public
testTransformToContextList():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test for {@link XmlTransforming#transformToPubCollectionList(String)}. Reads list of pubCollections [XML] from file, transforms the list to a {@link List<ContextVO>} and checks the results.
public
testTransformToMemberList():void
Sequential
Tags: annotations=@Test
throws=Exception
Notes: Test for {@link XmlTransforming#transformToMemberList(String)}. Reads member list [XML] from file, transforms the list to a {@link List<MemberListVO>} and checks the results.