import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
+import java.util.LinkedHashSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;
private CellReference cellReference;
/** Set of updated item ids */
- private Set<Object> updatedItemIds = new HashSet<Object>();
+ private Set<Object> updatedItemIds = new LinkedHashSet<Object>();
/**
* Queued RPC calls for adding and removing rows. Queue will be handled in
import org.junit.Assert;
import org.junit.Test;
+import com.vaadin.testbench.elements.NotificationElement;
import com.vaadin.tests.components.grid.basicfeatures.GridBasicFeaturesTest;
public class GridRowAddRemoveTest extends GridBasicFeaturesTest {
@Test
public void addRows_loadAllAtOnce() {
+ setDebug(true);
openTestURL();
selectMenuPath("Settings", "Clear log");
"All newly required rows should be fetched in the same round trip.",
logContainsText("Requested items 37 - 55"));
}
+
+ @Test
+ public void testAdd18Rows() {
+ setDebug(true);
+ openTestURL();
+
+ selectMenuPath("Settings", "Clear log");
+ selectMenuPath("Component", "Body rows", "Add 18 rows");
+
+ Assert.assertFalse("An error notification is present.",
+ isElementPresent(NotificationElement.class));
+ }
}