Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

DBUnit

 
Deyna Cegielski
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, im having trouble performing assertions of datasets and tables due to null values in some of the columns.

Consider the table TBL with columns COL1, COL2, COL3, COL4 COL5 and COL3 is optional.

My initial dataset would look like this (as this would be the norm for a row in this table):

<dataset>
<TBL COL1="val" COL2="val" COL4="val" COL5="val"/>
</dataset>

Now, i want to DELETE this row, so my expected dataset would be:

<dataset>
<TBL/>
</dataset>

So when create the actual dataset and compare that against the expected dataset they are exactly the same (if i output them to xml) but the assertion fails with a column count error (expected 0, found 5).

I dont understand why because i am comparing datasets and not tables (and columns).

Any help would be appreciated.
 
What a show! What atmosphere! What fun! What a tiny ad!
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!