]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix UnknownComponentConnector and ComponentMissingFromDefaultWidgetSet tests
authorAleksi Hietanen <aleksi@vaadin.com>
Thu, 8 Dec 2016 09:34:28 +0000 (11:34 +0200)
committerPekka Hyvönen <pekka@vaadin.com>
Fri, 9 Dec 2016 07:39:00 +0000 (09:39 +0200)
Change-Id: I050c9e07a80c73ff9cf301427e2f32e2d90ce3bb

uitest/src/main/java/com/vaadin/tests/components/UnknownComponentConnector.java [new file with mode: 0644]
uitest/src/test/java/com/vaadin/tests/components/ui/ComponentMissingFromDefaultWidgetsetTest.java

diff --git a/uitest/src/main/java/com/vaadin/tests/components/UnknownComponentConnector.java b/uitest/src/main/java/com/vaadin/tests/components/UnknownComponentConnector.java
new file mode 100644 (file)
index 0000000..2688be2
--- /dev/null
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2000-2016 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.tests.components;
+
+import com.vaadin.annotations.Widgetset;
+import com.vaadin.server.VaadinRequest;
+import com.vaadin.ui.AbstractComponent;
+
+@Widgetset("com.vaadin.DefaultWidgetSet")
+public class UnknownComponentConnector extends AbstractTestUI {
+
+    public static class ComponentWithoutConnector extends AbstractComponent {
+
+    }
+
+    @Override
+    protected void setup(VaadinRequest request) {
+        ComponentWithoutConnector component = new ComponentWithoutConnector();
+        component.setId("no-connector-component");
+        addComponent(component);
+    }
+
+    @Override
+    protected String getTestDescription() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    @Override
+    protected Integer getTicketNumber() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+}
index d64bd88046818dbbbe707e3a83cb298719844f5a..65eea0f2343e1da82ef250f737167b8e6a32cdcb 100644 (file)
@@ -35,7 +35,7 @@ public class ComponentMissingFromDefaultWidgetsetTest
         openTestURL();
         WebElement component = vaadinElementById("missing-component");
         assertTrue(component.getText().startsWith(
-                "Widgetset 'com.vaadin.DefaultWidgetSet' does not contain implementation for com.vaadin.tests.widgetset.server.MissingFromDefaultWidgetsetComponent."));
+                "Widgetset 'com.vaadin.DefaultWidgetSet' does not contain an implementation for com.vaadin.tests.widgetset.server.MissingFromDefaultWidgetsetComponent."));
 
     }
 }