Test suite: Basic test
Purpose: Tests basic beans binding functionality.
Setup: Create new Java Application project, add new jFrame form and add two jLabel components into that form. Renamed labels to sourceLabel and targetLabel and change text value of labels to "source" and "target"
- Bind text property of JLabel components
- Invoke popup menu for targetLabel component node in Inspector window
- Click "Bind -> text" menu item
- In Bind dialog in Binding source select sourceLabel component
- In Bind Expression tree combo list doubleclik on "text java.lang.String" node and press OK
- EXPECTED RESULT: Now "text" property of two jlabels are binded. Binding works also in desing time, targetLabel now contains value from binded sourceLabel component.
- Check the generated code
- In form designer press Source button and expand initComponents() method body
- EXPECTED RESULT: Binding dialog added there binding code, check the lines which starts with "bindingContext...". There should be initialization of binding context object, binding of our two labels and start of binding process.