From: <eri...@us...> - 2009-03-04 16:24:00
|
Revision: 2414 http://geonetwork.svn.sourceforge.net/geonetwork/?rev=2414&view=rev Author: erikvaningen Date: 2009-03-04 16:23:55 +0000 (Wed, 04 Mar 2009) Log Message: ----------- starting adding org.geonetwork.domain.csw202.record.Acknowledgement to the Jibx binding. Missing part is EchoedRequest. Modified Paths: -------------- sandbox/3.0.x/geonetwork-domain-ebrim/src/test/java/org/geonetwork/domain/csw202/discovery/AcknowledgementTest.java sandbox/3.0.x/geonetwork-domain-ebrim/src/test/resources/csw202-discovery/AcknowledgementTestData.xml Modified: sandbox/3.0.x/geonetwork-domain-ebrim/src/test/java/org/geonetwork/domain/csw202/discovery/AcknowledgementTest.java =================================================================== --- sandbox/3.0.x/geonetwork-domain-ebrim/src/test/java/org/geonetwork/domain/csw202/discovery/AcknowledgementTest.java 2009-03-04 16:19:34 UTC (rev 2413) +++ sandbox/3.0.x/geonetwork-domain-ebrim/src/test/java/org/geonetwork/domain/csw202/discovery/AcknowledgementTest.java 2009-03-04 16:23:55 UTC (rev 2414) @@ -28,12 +28,8 @@ public class AcknowledgementTest { - @Test - public void testDummy() { - assertTrue(true); - } - - // @Test + + @Test public void testUnmarshal() throws FileNotFoundException, JiBXException { // get input XML from file system @@ -58,7 +54,7 @@ assertEquals("Unmarshalling Acknowledgement", expectedResult, unMarshallingResult); } - // @Test + @Test public void testMarshal() throws JiBXException, SAXException, IOException { // create a Acknowledgement with some values Modified: sandbox/3.0.x/geonetwork-domain-ebrim/src/test/resources/csw202-discovery/AcknowledgementTestData.xml =================================================================== --- sandbox/3.0.x/geonetwork-domain-ebrim/src/test/resources/csw202-discovery/AcknowledgementTestData.xml 2009-03-04 16:19:34 UTC (rev 2413) +++ sandbox/3.0.x/geonetwork-domain-ebrim/src/test/resources/csw202-discovery/AcknowledgementTestData.xml 2009-03-04 16:23:55 UTC (rev 2414) @@ -1,8 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<csw:Acknowledgement timeStamp="1970-01-01T00:00:00Z" xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" - xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dct="http://purl.org/dc/terms/" xmlns:gml="http://www.opengis.net/gml" - xmlns:ogc="http://www.opengis.net/ogc" xmlns:ows="http://www.opengis.net/ows" xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2 CSW-discovery.xsd "> +<csw:Acknowledgement xmlns:tns="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0" xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" csw:timestamp="2001-12-30T23:00:00Z"> <!-- <csw:EchoedRequest> <csw:Query typeNames=""> <csw:ElementSetName typeNames="">summary</csw:ElementSetName> <csw:Constraint version=""> <ogc:Filter> <ogc:Equals> <ogc:PropertyName/> <gml:Point axisLabels="" gid="" @@ -18,5 +15,5 @@ <ogc:SortBy> <ogc:SortProperty> <ogc:PropertyName/> <ogc:SortOrder>DESC</ogc:SortOrder> </ogc:SortProperty> </ogc:SortBy> </csw:Query> </csw:EchoedRequest> --> - <csw:RequestId>http://tempuri.org</csw:RequestId> -</csw:Acknowledgement> + <csw:RequestId>http://tempuri.org</csw:RequestId> +</csw:Acknowledgement> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |