db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Jefferson <a...@datanucleus.org>
Subject TCK : StateTransitions test
Date Sun, 13 Mar 2011 13:25:05 GMT
Maybe I'm just not reading this test correctly, in which case please point out 
where I'm going wrong. StateTransition test creates 50 objects, with field 
value from 0 to 49. When running each test it calls getInstanceInState(). This 
method doesn't seem to care about which object it is picking (i.e which field 
value) since it just gets an Extent (no ordering defined how they are 
returned), and takes the first in the iterator(). This means that the instance 
returned could have a field value that is the same as a mutator operation may 
be attempting to set the field to. In that case the object wouldn't become 
dirty. Why create 50 objects if not using one per test ?

Or is there something I haven't seen ?



Regards
-- 
Andy
DataNucleus (http://www.datanucleus.org)

Mime
View raw message