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]
--
http://raibledesigns.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]