This discussion is archived
2 Replies Latest reply: Oct 8, 2012 9:52 AM by 846189 RSS

JUnit AlgorithmImplementationTestCase does not commit changes

710438 Newbie
Currently Being Moderated
I'm using a JUnit AlgorithmImplementationTestCase class to perform my business component tests. This CM component is supposed to create a record in the database.

After the JUnit program finishes, I'm not able to see the changes in the database through the SQL Developer, the test ends successfully, though.

I've tried wrapping my business component execution between a startChanges() and a saveChanges() and it does not work.

I'm thinking on trying to create an alternate session within the JUnit to force it write the data, but I hope there's a better way to do it.

Any ideas?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points