aboutsummaryrefslogtreecommitdiffstats
path: root/tests/server-side/com/vaadin/data
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2011-11-08 18:08:51 +0200
committerHenri Sara <hesara@vaadin.com>2011-11-08 18:08:51 +0200
commite049c5a6573feb65c3536cb0839534f02c2e95f3 (patch)
treea97a145ce3e1f2137d456a53a8dafc57d67eea6d /tests/server-side/com/vaadin/data
parent0ab1d01c8da1f280370452fa2427708fd6de513e (diff)
parent2eff8c02aba3d9dc0dd74b0aff9c114a3dc29201 (diff)
downloadvaadin-framework-e049c5a6573feb65c3536cb0839534f02c2e95f3.tar.gz
vaadin-framework-e049c5a6573feb65c3536cb0839534f02c2e95f3.zip
Merge branch 'master' into databinding
Diffstat (limited to 'tests/server-side/com/vaadin/data')
-rw-r--r--tests/server-side/com/vaadin/data/util/FileSystemContainerTest.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/server-side/com/vaadin/data/util/FileSystemContainerTest.java b/tests/server-side/com/vaadin/data/util/FileSystemContainerTest.java
new file mode 100644
index 0000000000..f4bb794e5c
--- /dev/null
+++ b/tests/server-side/com/vaadin/data/util/FileSystemContainerTest.java
@@ -0,0 +1,16 @@
+package com.vaadin.data.util;
+
+import java.io.File;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+public class FileSystemContainerTest {
+
+ @Test
+ public void nonExistingDirectory() {
+ FilesystemContainer fsc = new FilesystemContainer(new File(
+ "/non/existing"));
+ Assert.assertTrue(fsc.getItemIds().isEmpty());
+ }
+}