From: Aron Roberts Date: Thu, 6 Sep 2012 23:12:59 +0000 (-0700) Subject: CSPACE-5518: Created initial tests, placeholder response payload files for testing... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=6e9a9fc54c5f4981485a914d1a82fd0a86bb3649;p=tmp%2Fjakarta-migration.git CSPACE-5518: Created initial tests, placeholder response payload files for testing relation common list values in responses. --- diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/collectionobject-hierarchy.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/collectionobject-hierarchy.xml index ab5d6ff30..4a4cb5a58 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/collectionobject-hierarchy.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/collectionobject-hierarchy.xml @@ -1,4 +1,4 @@ - + @@ -134,48 +134,102 @@ + + GET /cspace-services/collectionobjects/${CreateChessSetBox.CSID}?showRelations=true - + GET /cspace-services/collectionobjects/${CreateBagOfBlackChessPieces.CSID}?showRelations=true - + GET /cspace-services/collectionobjects/${CreateBlackRook.CSID}?showRelations=true - + - - GET - /cspace-services/relations - - - - + + + + GET + /cspace-services/collectionobjects/${CreateBagOfBlackChessPieces.CSID}?showSiblings=true + + + collectionobject/hierarchy/res/read-siblings-top-level.res.xml + /document/*[local-name()='relations-common-list'] + + + + + GET + /cspace-services/collectionobjects/${CreateBagOfBlackChessPieces.CSID}?showSiblings=true + + + collectionobject/hierarchy/res/read-siblings-mid-level.res.xml + + ${CreateChessSetBox.CSID} + ${CreateChessBoard.CSID} + ${CreateBagOfWhiteChessPieces.CSID} + + /document/*[local-name()='relations-common-list'] + + + + + GET + /cspace-services/collectionobjects/${CreateBlackQueen.CSID}?showSiblings=true + + + collectionobject/hierarchy/res/read-siblings-bottom-level.res.xml + + ${CreateBagOfBlackChessPieces.CSID} + ${CreateBlackRook.CSID} + + /document/*[local-name()='relations-common-list'] + + + + + + + GET + /cspace-services/collectionobjects/${CreateChessSetBox.CSID}?showAllRelations=true + + + collectionobject/hierarchy/res/read-all-relations.res.xml + /document/*[local-name()='relations-common-list'] + + + + + + + GET /cspace-services/relations?sbj=${CreateBagOfBlackChessPieces.CSID} - + GET /cspace-services/relations?obj=${CreateBagOfBlackChessPieces.CSID} - - - + + + + + - - - - - - - - - - - - - diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/2-collectionobjects_w_relations_CSID.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/2-collectionobjects_w_relations_CSID.xml new file mode 100644 index 000000000..20c014dcc --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/2-collectionobjects_w_relations_CSID.xml @@ -0,0 +1,93 @@ + + + + + ${objectNumber} + ${distinguishingFeatures} + + + + + + + + + + hasBroader + + ${chessBoardCSID} + + + ${chessSetBoxCSID} + + + + + hasBroader + + ${bagOfWhiteChessPiecesCSID} + + + ${chessSetBoxCSID} + + + + + hasBroader + + ${bagOfBlackChessPiecesCSID} + + + ${chessSetBoxCSID} + + + + + + + + hasBroader + + ${whiteRookCSID} + + + ${bagOfWhiteChessPiecesCSID} + + + + + hasBroader + + ${whiteBishopCSID} + + + ${bagOfWhiteChessPiecesCSID} + + + + + hasBroader + + ${blackQueenCSID} + + + ${bagOfBlackChessPiecesCSID} + + + + + hasBroader + + ${blackRookCSID} + + + ${bagOfBlackChessPiecesCSID} + + + + + + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/read-all-relations.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/read-all-relations.res.xml new file mode 100644 index 000000000..17f06f674 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/read-all-relations.res.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/read-siblings-bottom-level.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/read-siblings-bottom-level.res.xml new file mode 100644 index 000000000..70d7217a3 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/read-siblings-bottom-level.res.xml @@ -0,0 +1,26 @@ + + + + + + + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/read-siblings-mid-level.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/read-siblings-mid-level.res.xml new file mode 100644 index 000000000..ec997fd8a --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/read-siblings-mid-level.res.xml @@ -0,0 +1,38 @@ + + + + + + + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/read-siblings-top-level.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/read-siblings-top-level.res.xml new file mode 100644 index 000000000..9a724a693 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/read-siblings-top-level.res.xml @@ -0,0 +1,15 @@ + + + + + + + +