Bug 127861 [DataBinding] Mark API provisional
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/databinding/SelectionAwareUpdatableCollectionTest.java
package org.eclipse.jface.databinding;
import java.util.ArrayList;
import java.util.List;
import junit.framework.TestCase;
public class SelectionAwareUpdatableCollectionTest extends TestCase {
	public void testGetElementsAndSetElements() {
		TestSelectionUpdatableCollection collection = new TestSelectionUpdatableCollection();
		String string1 = "string1";
		String string2 = "string2";
		String string3 = "string3";
		String string4 = "string4";
		String string5 = "string5";
		
		collection.addElement(string1, 0);
		collection.addElement(string2, 1);
		collection.setSelectedObject(string1);
		
		List elementsToUpdate = new ArrayList();
		elementsToUpdate.add(string3);
		elementsToUpdate.add(string4);
		elementsToUpdate.add(string5);