]> source.dussan.org Git - vaadin-framework.git/commitdiff
Use a ClassResource with full path in integration tests to detect #7738
authorArtur Signell <artur.signell@itmill.com>
Fri, 7 Oct 2011 12:43:27 +0000 (12:43 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 7 Oct 2011 12:43:27 +0000 (12:43 +0000)
svn changeset:21645/svn branch:6.7

tests/testbench/com/vaadin/tests/integration/IntegrationTestApplication.java

index c61d23ae8d12258984bcaa9eb7c94a39f9d4200c..39c36258f6cfae4a657f0d4e65621db52f40ee2e 100644 (file)
@@ -32,8 +32,15 @@ public class IntegrationTestApplication extends Application {
                 .setValue(new ClassResource("fi.gif", this));
         item.getItemProperty("country").setValue("Finland");
         item = table.addItem("SE");
-        item.getItemProperty("icon")
-                .setValue(new ClassResource("se.gif", this));
+        item.getItemProperty("icon").setValue(
+                new ClassResource("/"
+                        + IntegrationTestApplication.class
+                                .getName()
+                                .replace('.', '/')
+                                .replaceAll(
+                                        IntegrationTestApplication.class
+                                                .getSimpleName() + "$", "")
+                        + "/se.gif", this));
         item.getItemProperty("country").setValue("Sweden");
 
         final Label selectedLabel = new Label();