aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-10-01 21:11:49 +0300
committerArtur Signell <artur@vaadin.com>2012-10-01 21:11:49 +0300
commitcf20da29cf87994e2f9bd0f6957585196e792abd (patch)
treea95b48d1eb7b9be84706f1368b79a0c61d8595d3
parent4ef5aec435042a6c8e5a8084e6aeb6f60b05d863 (diff)
downloadvaadin-framework-cf20da29cf87994e2f9bd0f6957585196e792abd.tar.gz
vaadin-framework-cf20da29cf87994e2f9bd0f6957585196e792abd.zip
Fixed test to work also on build server
Change-Id: I78e49ad780c75b38fb62f3880bc6b4b08c9af8b1
-rw-r--r--uitest/src/com/vaadin/tests/components/ui/UISerialization.html2
-rw-r--r--uitest/src/com/vaadin/tests/components/ui/UISerialization.java46
2 files changed, 1 insertions, 47 deletions
diff --git a/uitest/src/com/vaadin/tests/components/ui/UISerialization.html b/uitest/src/com/vaadin/tests/components/ui/UISerialization.html
index 1eb6dffcc0..2379882a2c 100644
--- a/uitest/src/com/vaadin/tests/components/ui/UISerialization.html
+++ b/uitest/src/com/vaadin/tests/components/ui/UISerialization.html
@@ -18,7 +18,7 @@
</tr>
<tr>
<td>click</td>
- <td>vaadin=runcomvaadintestscomponentsuiUISerialization::/VVerticalLayout[0]/VOrderedLayout$Slot[1]/VVerticalLayout[0]/VOrderedLayout$Slot[3]/VButton[0]/domChild[0]/domChild[0]</td>
+ <td>vaadin=runcomvaadintestscomponentsuiUISerialization::/VVerticalLayout[0]/VOrderedLayout$Slot[1]/VVerticalLayout[0]/VOrderedLayout$Slot[1]/VButton[0]/domChild[0]/domChild[0]</td>
<td></td>
</tr>
<tr>
diff --git a/uitest/src/com/vaadin/tests/components/ui/UISerialization.java b/uitest/src/com/vaadin/tests/components/ui/UISerialization.java
index 927d00a388..2f72166b11 100644
--- a/uitest/src/com/vaadin/tests/components/ui/UISerialization.java
+++ b/uitest/src/com/vaadin/tests/components/ui/UISerialization.java
@@ -24,14 +24,11 @@ import java.io.Serializable;
import java.util.Date;
import com.vaadin.server.VaadinRequest;
-import com.vaadin.tests.VaadinClasses;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.tests.util.Log;
-import com.vaadin.ui.AbstractComponent;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
-import com.vaadin.ui.Component;
public class UISerialization extends AbstractTestUI {
@@ -40,28 +37,6 @@ public class UISerialization extends AbstractTestUI {
@Override
protected void setup(VaadinRequest request) {
addComponent(log);
- for (Class<? extends Component> cls : VaadinClasses.getComponents()) {
- try {
- AbstractComponent c = (AbstractComponent) cls.newInstance();
- if (c instanceof LegacyWindow) {
- continue;
- }
- if (!(c instanceof Button)) {
- continue;
- }
-
- c.setId(cls.getName());
- c.setCaption(cls.getName());
- c.setDescription(cls.getName());
- c.setWidth("100px");
- c.setHeight("100px");
- addComponent(c);
- System.out.println("Added " + cls.getName());
- } catch (Exception e) {
- System.err.println("Could not instatiate " + cls.getName());
- }
- }
-
addComponent(new Button("Serialize UI", new ClickListener() {
@Override
@@ -86,27 +61,6 @@ public class UISerialization extends AbstractTestUI {
}
}));
- addComponent(new Button(
- "Instantiate and serialize server classes with no-arg constructors",
- new ClickListener() {
-
- @Override
- public void buttonClick(ClickEvent event) {
- for (Class<?> cls : VaadinClasses
- .getAllServerSideClasses()) {
- try {
- serializeInstance(cls);
- } catch (InstantiationException e) {
- // No no-arg constructor probably, ignore
- } catch (Throwable t) {
- log.log("Failed to create and serialize instance of "
- + cls.getName());
- }
- }
- log.log("Serialization done");
-
- }
- }));
}
protected void serializeInstance(Class<?> cls)