Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Having Troubles with JUnit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Having Troubles with JUnit



Out of the blue (or maybe since I updated WOLIPS?) I'm having all kinds of issues with running my test cases on my frameworks.

I found this tidbit on the Wiki that helped (which I didn't seem to need before): http://wiki.objectstyle.org/confluence/display/WO/Testing-JUnit+and+TestNG

But now I'm getting an error on one of my frameworks that I'm unable to create a primary key for the entity I'm testing (IllegalStateException - Adaptor com.webobjects.jdbcadaptor.JDBCAdaptor@50152643 failed to provide new primary keys for entity)?

The way I test my EOModels is I have a test database that I setup/tear down every time that I run the test.  I'm able to create the tables (using EOUtilities.rawRowsForSQL) but when I try to saveChanges on the EO i'm creating I get the error above.

I'm using a MySQL database with the MySQL plugin framework.  Did something change recently in WOLips that could have caused my old tests to fail?

Thanks in advance,

Johnny Miller
Kahalawai Media Corp



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.