Bug 117965 [DataBinding] Change tests plugin to pre-req examples
This will allow the UI tests in examples to make use of the pojo model
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/TreeScenarios.java
tviewer.expandAll();
		spinEventLoop(0);
		
		TreeItem[] firstLevel = item.getItems();		
		int index = 0;		
		for (int i = 0; i < categories.length; i++, index++) { 
			
			assertEquals(categories[i].getName(), firstLevel[index].getText());
			
			
			TreeItem[] secondLevel = firstLevel[index].getItems();
			Adventure[] adventures = categories[i].getAdventures();
			for (int j = 0; j < secondLevel.length; j++) {
				assertEquals(adventures[j].getName(), secondLevel[j].getText(0));
				assertEquals(Double.toString(adventures[j].getPrice()), secondLevel[j].getText(1));				
			}
		}
		
		for (int i = 0; i < lodgings.length; i++, index++) {
			assertEquals(lodgings[i].getName(), firstLevel[index].getText(0));
			assertEquals(lodgings[i].getDescription(), firstLevel[index].getText(1));
		}
		
		for (int i = 0; i < accounts.length; i++, index++) {
			assertEquals(accounts[i].getFirstName(), firstLevel[index].getText(0));
			assertEquals(accounts[i].getLastName(), firstLevel[index].getText(1));
		}		
	}