From 6e9a9fc54c5f4981485a914d1a82fd0a86bb3649 Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Thu, 6 Sep 2012 16:12:59 -0700 Subject: [PATCH] CSPACE-5518: Created initial tests, placeholder response payload files for testing relation common list values in responses. --- .../collectionobject-hierarchy.xml | 204 ++++++------------ .../2-collectionobjects_w_relations_CSID.xml | 93 ++++++++ .../hierarchy/res/read-all-relations.res.xml | 6 + .../res/read-siblings-bottom-level.res.xml | 26 +++ .../res/read-siblings-mid-level.res.xml | 38 ++++ .../res/read-siblings-top-level.res.xml | 15 ++ 6 files changed, 247 insertions(+), 135 deletions(-) create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/2-collectionobjects_w_relations_CSID.xml create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/read-all-relations.res.xml create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/read-siblings-bottom-level.res.xml create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/read-siblings-mid-level.res.xml create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/read-siblings-top-level.res.xml 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 @@ + + + + + + + + -- 2.47.3