People did notice that the first case looks like a floating point with
an exponent... Could this be an edge case were the generation thinks
there number is to big to be an integer long and pumps out a double.
Matt Raible wrote:
Sounds like a bug. I wonder why the number has a decimal place in it?
Matt
On 7/12/07, Martin Homik <[EMAIL PROTECTED]> wrote:
I have a POJO whose fields are of type Long. The generated action
test class
instantiates the POJO class and sets its fields to some initial random
values (in onSetUpBeforeTransaction and testSave. It looks like this:
link2Cat.setLinkId(4.878530667730682E8L);
Although compilation is successfull the test lifecycle ends with an
error.
If you change the set method to
link2Cat.setLinkId(48785306677306828L);
the tests complete without complaints.
PS: "linkID" is not a primary key.
--
View this message in context:
http://www.nabble.com/appfuse%3Agen%7Cinstall-creates-faulty-test-classes-for-POJOs-with-fields-of-type-Long--tf4068535s2369.html#a11561369
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]