I have a question regarding data insertion into database with JUNITTest (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?).
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.