Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Junit test for ADF BC4J Application module.

Nkovoor-OracleSep 13 2013 — edited Oct 28 2013

I have got this query from an internal customer

I’m using the maven-surefire-plugin to run tests on my ADF-BC components. However, the following always returns null:

  1. Configuration.createRootApplicationModule("com.oracle.irt.core.am.AppModule", "AppModuleTest");

The same tests run successfully when run through JDeveloper.

User has an ADf fusion web app, with BC4J model and a viewController project.

In this case he has downloaded the ‘BC4J JUnit Integration’ extension and written a Unit test for testing the BC4J application module.

The BC4J components are using a database connection.

When maven runs the test phase for the Model project. It only has the model project build output and the libraries used by the project in its classpath.

1. Is it possible to run this test outside or Jdeveloper? Like as part of Ant/Maven build? (My guess is it should be)

2. What should the classpath have for this test to run fine?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 25 2013
Added on Sep 13 2013
4 comments
971 views