summaryrefslogtreecommitdiffstats
path: root/compatibility-server
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-09-13 12:06:36 +0200
committerHenri Sara <henri.sara@gmail.com>2017-09-13 14:00:25 +0300
commit29cc151f37ee6e56910d6bb80ade321f08b26486 (patch)
treeaa886d960b368a5b35a34462941df007285b6fa8 /compatibility-server
parenta93670d0463ec00bb36b347ca15656fc411612fb (diff)
downloadvaadin-framework-29cc151f37ee6e56910d6bb80ade321f08b26486.tar.gz
vaadin-framework-29cc151f37ee6e56910d6bb80ade321f08b26486.zip
Fix varargs warnings
Diffstat (limited to 'compatibility-server')
-rw-r--r--compatibility-server/src/test/java/com/vaadin/v7/tests/server/component/table/TableVisibleColumnsTest.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/compatibility-server/src/test/java/com/vaadin/v7/tests/server/component/table/TableVisibleColumnsTest.java b/compatibility-server/src/test/java/com/vaadin/v7/tests/server/component/table/TableVisibleColumnsTest.java
index 244afb7dc5..5e7fb81848 100644
--- a/compatibility-server/src/test/java/com/vaadin/v7/tests/server/component/table/TableVisibleColumnsTest.java
+++ b/compatibility-server/src/test/java/com/vaadin/v7/tests/server/component/table/TableVisibleColumnsTest.java
@@ -41,8 +41,7 @@ public class TableVisibleColumnsTest {
Table t = TableGeneratorTest.createTableWithDefaultContainer(3, 10);
try {
- t.setVisibleColumns(
- new Object[] { "a", "Property 2", "Property 3" });
+ t.setVisibleColumns("a", "Property 2", "Property 3");
junit.framework.Assert.fail("IllegalArgumentException expected");
} catch (IllegalArgumentException e) {
// OK, expected
@@ -54,8 +53,8 @@ public class TableVisibleColumnsTest {
public void duplicateVisibleColumnIds() {
Table t = TableGeneratorTest.createTableWithDefaultContainer(3, 10);
try {
- t.setVisibleColumns(new Object[] { "Property 0", "Property 1",
- "Property 2", "Property 1" });
+ t.setVisibleColumns("Property 0", "Property 1",
+ "Property 2", "Property 1");
} catch (IllegalArgumentException e) {
// OK, expected
}
@@ -65,7 +64,7 @@ public class TableVisibleColumnsTest {
@Test
public void noVisibleColumns() {
Table t = TableGeneratorTest.createTableWithDefaultContainer(3, 10);
- t.setVisibleColumns(new Object[] {});
+ t.setVisibleColumns();
assertArrayEquals(new Object[] {}, t.getVisibleColumns());
}