From e65efdfb50bc10bedf506d475f582276f6be0e2f Mon Sep 17 00:00:00 2001 From: Knoobie Date: Mon, 30 Oct 2017 09:00:21 +0100 Subject: add Grid.Column#get/setAssistiveCaption (#10219) * add Grid#Column#get/setAssistiveCaption * fix test and update doc * move testGridAssistiveCaption to GridTest * delete test file * delete test file * Delete GridAssistiveCaptionTest.java * Create GridAssistiveCaptionTest * Create GridAssistiveCaption * Rename GridAssistiveCaption to GridAssistiveCaption.java * Rename GridAssistiveCaptionTest to GridAssistiveCaptionTest.java * Reformat using eclipse --- .../test/java/com/vaadin/tests/server/component/grid/GridTest.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'server/src/test/java') diff --git a/server/src/test/java/com/vaadin/tests/server/component/grid/GridTest.java b/server/src/test/java/com/vaadin/tests/server/component/grid/GridTest.java index d27c7c5260..8e31e9acc6 100644 --- a/server/src/test/java/com/vaadin/tests/server/component/grid/GridTest.java +++ b/server/src/test/java/com/vaadin/tests/server/component/grid/GridTest.java @@ -79,6 +79,13 @@ public class GridTest { .setId("randomColumnId"); } + @Test + public void testGridAssistiveCaption() { + assertEquals(null, fooColumn.getAssistiveCaption()); + fooColumn.setAssistiveCaption("Press Enter to sort."); + assertEquals("Press Enter to sort.", fooColumn.getAssistiveCaption()); + } + @Test public void testCreateGridWithDataCommunicator() { DataCommunicator specificDataCommunicator = new DataCommunicator<>(); -- cgit v1.2.3