Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDirk Fauth2022-08-26 21:12:04 +0000
committerDirk Fauth2022-08-26 21:12:04 +0000
commit7c4b3b21bd77d791f32c66ba534bdb97756bf0b0 (patch)
tree9c3c870ff909364a7183c923943fcc66a392762d
parente1b27e7272d2ae0a14a633199db2e3f878256f52 (diff)
downloadorg.eclipse.nebula.widgets.nattable-7c4b3b21bd77d791f32c66ba534bdb97756bf0b0.tar.gz
org.eclipse.nebula.widgets.nattable-7c4b3b21bd77d791f32c66ba534bdb97756bf0b0.tar.xz
org.eclipse.nebula.widgets.nattable-7c4b3b21bd77d791f32c66ba534bdb97756bf0b0.zip
Bug 580617 - ColumnChooserDialog throws exceptions with column groups
Added test case Change-Id: I175e8754fad1479ad6b43c2d93b6b83f615cee1e Signed-off-by: Dirk Fauth <dirk.fauth@googlemail.com>
-rw-r--r--org.eclipse.nebula.widgets.nattable.core.test/src/org/eclipse/nebula/widgets/nattable/util/ArrayUtilTest.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/org.eclipse.nebula.widgets.nattable.core.test/src/org/eclipse/nebula/widgets/nattable/util/ArrayUtilTest.java b/org.eclipse.nebula.widgets.nattable.core.test/src/org/eclipse/nebula/widgets/nattable/util/ArrayUtilTest.java
index b069a647..7f4a319e 100644
--- a/org.eclipse.nebula.widgets.nattable.core.test/src/org/eclipse/nebula/widgets/nattable/util/ArrayUtilTest.java
+++ b/org.eclipse.nebula.widgets.nattable.core.test/src/org/eclipse/nebula/widgets/nattable/util/ArrayUtilTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012, 2020 Original authors and others.
+ * Copyright (c) 2012, 2022 Original authors and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
@@ -16,6 +16,7 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
+import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
@@ -56,6 +57,13 @@ public class ArrayUtilTest {
assertEquals(10, intArray[1]);
assertEquals(25, intArray[2]);
assertEquals(15, intArray[3]);
+ }
+ @Test
+ public void shouldCreateMutableList() {
+ Collection<String> collection = ArrayUtil.asCollection(new String[] { "one", "two", "three" });
+ assertEquals(3, collection.size());
+ collection.add("four");
+ assertEquals(4, collection.size());
}
}

Back to the top