summaryrefslogtreecommitdiffstats
path: root/server/tests
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2013-03-21 16:43:31 +0200
committerVaadin Code Review <review@vaadin.com>2013-03-22 14:32:37 +0000
commitb247017a184dd8603ec06d1c9798f123b447a585 (patch)
tree6307e93ad13f91b5d661a6900290056e2d3ad84a /server/tests
parentde0761b03d7f1acf2aad8ac824d5cb49b75f9391 (diff)
downloadvaadin-framework-b247017a184dd8603ec06d1c9798f123b447a585.tar.gz
vaadin-framework-b247017a184dd8603ec06d1c9798f123b447a585.zip
Added Container.hasContainerFilters() API #11234
Change-Id: I223dbc7a8419a5c4b58321b708e8bd7c8bb8134b
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/src/com/vaadin/data/util/AbstractContainerTest.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/server/tests/src/com/vaadin/data/util/AbstractContainerTest.java b/server/tests/src/com/vaadin/data/util/AbstractContainerTest.java
index f04acf8c46..3d9909c42c 100644
--- a/server/tests/src/com/vaadin/data/util/AbstractContainerTest.java
+++ b/server/tests/src/com/vaadin/data/util/AbstractContainerTest.java
@@ -317,22 +317,29 @@ public abstract class AbstractContainerTest extends TestCase {
container.addContainerFilter(new SimpleStringFilter(
FULLY_QUALIFIED_NAME, "ab", false, false));
+ assertTrue(container.hasContainerFilters());
+
validateContainer(container, "com.vaadin.data.BufferedValidatable",
"com.vaadin.ui.TabSheet",
"com.vaadin.terminal.gwt.client.Focusable",
"com.vaadin.data.Buffered", isFilteredOutItemNull(), 20);
+
// Filter by "contains da" (reversed as ad here)
container.removeAllContainerFilters();
+
+ assertFalse(container.hasContainerFilters());
+
container.addContainerFilter(new SimpleStringFilter(
REVERSE_FULLY_QUALIFIED_NAME, "ad", false, false));
+ assertTrue(container.hasContainerFilters());
+
validateContainer(container, "com.vaadin.data.Buffered",
"com.vaadin.server.ComponentSizeValidator",
"com.vaadin.data.util.IndexedContainer",
"com.vaadin.terminal.gwt.client.ui.VUriFragmentUtility",
isFilteredOutItemNull(), 37);
-
}
/**