concept sample datum in category flex

appears as: sample data, sample data
Flex on Java

This is an excerpt from Manning's book Flex on Java.

You start this test by creating an ArrayCollection to simulate your data grid having data , then set the issues property of your view to the sample data you created . Next you select an item on the grid by setting the selectedIndex property of the datagrid to 2 . Then you call the method you’re testing and assert that the selectedIndex of the DataGrid is set back to -1 . Although we discourage reaching into the insides of the View’s child components to directly modify properties in your production code, you don’t have a choice when it comes to testing the View.

11.3.3. Bootstrap sample data

The last step building the Flex client is to bootstrap your application with sample data so that you have contact information in the database when you first run it. This will also allow you to see that the Flex remoting is working correctly. To do this you add the code shown next to the BootStrap.groovy file in the grails-app/conf folder of your application.