From: Aron Roberts Date: Wed, 18 Apr 2012 22:27:40 +0000 (-0700) Subject: CSPACE-3560: Added UTF-8, special characters, multiple records / record types XmlRepl... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=0db79ef8a7f0240991fd404ac7bf688f9b3f7790;p=tmp%2Fjakarta-migration.git CSPACE-3560: Added UTF-8, special characters, multiple records / record types XmlReplay-based tests for the Imports Service. Adding new test datafiles. --- diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-objectexit-media.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-objectexit-media.xml index 209ad37af..9507bc802 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-objectexit-media.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-objectexit-media.xml @@ -1,10 +1,70 @@ - - - Sebastián & Barnes - OE2010.2 - - + + + This is an exit note. + OE-IMPORT-TEST-1999.3 + + + + + This is another exit note. + OE-IMPORT-TEST-1999.4 + + + + + + + + true + 1999 + + + + + + + + + + + + + + + + + + + + + + + + eng + + + + + + + + + + + + 42 + + + + + + + + MH-IMPORT-TEST-1999.1 + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-objectexit-specialchars.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-objectexit-specialchars.xml index 209ad37af..497daff02 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-objectexit-specialchars.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-objectexit-specialchars.xml @@ -1,10 +1,30 @@ - - - Sebastián & Barnes - OE2010.2 - - + + + + "This sentence is wrapped in quotation marks (double quotes)." + "This sentence is wrapped in quotation marks (double quotes) as XML entities." + 'This sentence is wrapped in apostrophes (single quotes).' + 'This sentence is wrapped in apostrophes (single quotes) as XML entities.' + This sentence has a "quoted" segment & an ampersand (as an XML entity). + "This sentence has a "quoted" segment; & an ampersand (as an XML entity), and is wrapped in quotation marks." + <There are angle brackets around me, as XML entities.> + + An XML comment follows on the next line: + + + [there are square brackets around me] + {there are curly braces around me} + + The text which follows a backquote: Hawai`i + The text which follows contains a number sign (aka hash mark, pound sign): #20 + The text which follows contains reverse solidus (aka backslash) characters and a colon: c:\mydocs\ + The text which follows contains doubled reverse solidus (backslash) characters: \\mydocs + The text which follows contains a reverse solidus (backslash) followed by a solidus (aka forward slash): \/ + + OE-IMPORT-TEST-1999.5 + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-objectexit-utf8.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-objectexit-utf8.xml index 209ad37af..0ddfa6e80 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-objectexit-utf8.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-objectexit-utf8.xml @@ -3,8 +3,14 @@ - Sebastián & Barnes - OE2010.2 + This is an exit note written by Sebastián (a-acute accent) and Barnes, +which includes a pleasant façade (c-cedilla) and this cast of additional characters: +Δ : Greek capital letter Delta (U+0394) +Ж : Cyrillic capital letter Zhe with breve (U+04C1) +Ŵ : Latin capital letter W with circumflex (U+0174) +Ω : Greek capital letter Omega (U+03A9) +月 : Han (CJK) character 'moon; month' ((U+6708) + OE-IMPORT-TEST-1999.2 diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-objectexit.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-objectexit.xml index 209ad37af..ef3d137cc 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-objectexit.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-objectexit.xml @@ -1,10 +1,10 @@ - - - Sebastián & Barnes - OE2010.2 - - + + + This is an exit note. + OE-IMPORT-TEST-1999.1 + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/imports.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/imports.xml index ab98efa30..521c2d8d5 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/imports.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/imports.xml @@ -9,17 +9,74 @@ - + + 200 POST /cspace-services/imports - imports/import-1objectexit-post.xml + imports/import-objectexit.xml - imports/res/import-1objectexit-post.res.xml + imports/res/import-objectexit.res.xml + + + + + + 200 + POST + /cspace-services/imports + imports/import-objectexit-utf8.xml + + + imports/res/import-objectexit.res.xml + + + 200 + POST + /cspace-services/imports + imports/import-objectexit-specialchars.xml + + + imports/res/import-objectexit.res.xml + + + + + + 200 + POST + /cspace-services/imports + imports/import-objectexit-media.xml + + + imports/res/import-objectexit-media.res.xml + + + + + + + + + - - - - - - - - diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/res/import-objectexit-media.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/res/import-objectexit-media.res.xml index 47bc54dca..1e1fba581 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/res/import-objectexit-media.res.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/res/import-objectexit-media.res.xml @@ -1,5 +1,13 @@ - 1 + 3 + + ObjectExit + 2 + + + Media + 1 + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/res/import-objectexit.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/res/import-objectexit.res.xml index 47bc54dca..0b4d64b43 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/res/import-objectexit.res.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/res/import-objectexit.res.xml @@ -1,5 +1,9 @@ 1 + + ObjectExit + 1 +