Hi,

I've tried dbunit (via Maven), but the assertion fails when comparing a TEXT
value in MySQL.
The XML I am comparing with was created using dbunit:export with the very
same database state.
The trace shows that dbunit really compares two identical values - see
below.

What can be wrong?

Thanks, Ondra


Trace
junit.framework.AssertionFailedError: value (table=dm_ws_archiv, row=0,
col=poznamka):

expected:<<?xml version = '1.0' encoding = 'UTF-8'?>
<tns:udalost xmlns:tns="http://www.cca.cz/isir/poznamka";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.cca.cz/isir/poznamka
https://isir.justice.cz:8443/isir_ws/xsd/poznamka.xsd";
verzeXsd="1"><idOsobyPuvodce>KSSEMOS</idOsobyPuvodce><vec><druhStavRizeni>NEVYRIZENA</druhStavRizeni></vec></tns:udalost>>
 

but was:<<?xml version = '1.0' encoding = 'UTF-8'?>
<tns:udalost xmlns:tns="http://www.cca.cz/isir/poznamka";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.cca.cz/isir/poznamka
https://isir.justice.cz:8443/isir_ws/xsd/poznamka.xsd";
verzeXsd="1"><idOsobyPuvodce>KSSEMOS</idOsobyPuvodce><vec><druhStavRizeni>NEVYRIZENA</druhStavRizeni></vec></tns:udalost>>

-- 
View this message in context: 
http://www.nabble.com/dbunit%3Acompare-fails-despite-equal-values-tp22144634p22144634.html
Sent from the mojo - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to