2 Replies Latest reply on Oct 8, 2012 4:52 PM by 846189

    JUnit AlgorithmImplementationTestCase does not commit changes

    Angel P.
      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?