Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to test public method in Application Module in Oracle ADF?

I am working on a project that is based on the Oracle ADF framework. We have an AM (application module) called TestAM.xml that has interface TestAM.java and implementation class TestAMImpl.java.
TestAMImpl.java has a public method with a method signature: String fetchSomething(String id)

I want to test/debug this method locally by passing the ID parameter, how can I do that? I am trying to run the AM Tester, but that only allows testing of the VOs associated with the AM and not the public methods defined in the AM.

Any leads will be helpful.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You can use the ApplicationModuleTester app to test the public methods of an AM.
Run the tester app and right-click on the application module, then select ‘show’ from the menu.

This will show you the method (in the drow down and its parameters. Set the values and click ‘execute’ to run the method.

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading