14.01.2013 Views

Oracle JHeadstart Developer's Guide - Downloads - Oracle

Oracle JHeadstart Developer's Guide - Downloads - Oracle

Oracle JHeadstart Developer's Guide - Downloads - Oracle

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.3.9. Testing the Model<br />

Before starting to generate with <strong>JHeadstart</strong>, you should be sure you have your Model<br />

right. So make sure you can query, insert, update and delete data with your View<br />

Objects.<br />

Use the Business Components Tester for validating your model. Right-click your<br />

Application Module and choose ‘Test…’ . Check the Database Connection name and<br />

click the Connect button. Now the <strong>Oracle</strong> Business Component Browser opens.<br />

On the left hand side you will see the Data Model of the Application Module. Double<br />

click one of the View Object Usages to open a browser for it. On the right hand side you<br />

can now browse through the rows, make changes to them, and, using the toolbar, even<br />

create and delete rows.<br />

See the JDeveloper help for further instructions. Topic is ‘Testing with the ADF Business<br />

Components Browser’.<br />

Suggestion: This Tester application is a very convenient way of checking<br />

whether you have correctly specified your Business Components, without<br />

having to create a full-blown application on top of it first. Also, in multilayered<br />

applications such as these, the exact source of a problem is not always<br />

easy to determine. The Tester application is very useful in determining<br />

whether a problem is located ‘above’ or ‘below’ the ADF Bindings. Finally, it is<br />

a quick and easy way to test virtually any business rule implementation that<br />

was implemented in the Business Components.<br />

3 - 24 Creating Business Components <strong>JHeadstart</strong> <strong>Developer's</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!