• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

[EJB3UNIT] Data insertion in my database

 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!

I have a question regarding data insertion into database with JUNIT Test (EJB3UNIT).

I'm testing my method which save record in my database, but, my new records are not saved in my database while they are created because when a record is created, the id are incremented when my method is called.

Thus, i wonder: it is possible that my data are deleted automatically after the insertion? (normal behavior of JUNIT Test or it is a problem with me?).

Thanks in advance.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI Fabian,

I am new to EJB3Unit and trying to automate my EJB3 application unit-testing. I wanted to use Oracle database and configured ejb3unit.properties with relevant settings and ran my session bean testcases. It fails to connect to the database, I have verified the database connection via sqlplus and I was able to connect (I also tried connecting via TOAD, it works).

Below is the ejb3unit.properties file:


I am getting the below error:



As I can see that you were able to run your tests without any errors, could you please help me what I am doing wrong.

Thanks in advance.

Regards,
Ramana
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic