Hi All, Comments are welcome. Thanks.
Richard On 5/21/07, Richard G. Reyes <[EMAIL PROTECTED]> wrote:
Hi All, Please allow me to ask another question. Im still trying to find an answer but was hoping someone here is available for a quick help. My testEdit() method on my ActionTest fails... heres the detail of the error... ---------------- [junit] [thinkscan] DEBUG [main] ImageActionTest.testEdit(27) | testing edit... [junit] [thinkscan] DEBUG [main] ImageAction.edit(56) | ----------------------------- id is not null = 1 [junit] [thinkscan] DEBUG [main] ImageDaoHibernate.getImage(16) | ID: 1 [junit] [thinkscan] DEBUG [main] ImageDaoHibernate.getImage(20) | %%%%%%%%%%%%%%%%%%%%%%% [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.234 sec [junit] [junit] ------------- Standard Output --------------- [junit] [thinkscan] DEBUG [main] ImageActionTest.testEdit(27) | testing edit... [junit] [thinkscan] DEBUG [main] ImageAction.edit(56) | ----------------------------- id is not null = 1 [junit] [thinkscan] DEBUG [main] ImageDaoHibernate.getImage(16) | ID: 1 [junit] [thinkscan] DEBUG [main] ImageDaoHibernate.getImage(20) | %%%%%%%%%%%%%%%%%%%%%%% [junit] ------------- ---------------- --------------- [junit] Testcase: testEdit(com.voxsant.thinkscan.webapp.action.ImageActionTest): Caused an ERROR [junit] Object of class [com.voxsant.thinkscan.model.Image] with identifier [1]: not found [junit] org.springframework.orm.ObjectRetrievalFailureException: Object of class [com.voxsant.thinkscan.model.Image] h identifier [1]: not found ------------------------------- I have already created a record in sample-data.xml with id==1 so i am not sure how that record is being deleted when running test-web. Please advise... Thanks Richard
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
