]> source.dussan.org Git - vaadin-framework.git/commitdiff
A basic semi generic Form test
authorArtur Signell <artur.signell@itmill.com>
Thu, 6 Oct 2011 13:49:39 +0000 (13:49 +0000)
committerArtur Signell <artur.signell@itmill.com>
Thu, 6 Oct 2011 13:49:39 +0000 (13:49 +0000)
svn changeset:21613/svn branch:6.7

tests/testbench/com/vaadin/tests/util/Person.java
tests/testbench/com/vaadin/tests/util/Product.java [new file with mode: 0644]

index 822f62d17ac6f82a627f07d3d959da12b71ffc05..c3e7a69d560fa0f060f11540339d8d236498b6d3 100644 (file)
@@ -12,6 +12,22 @@ public class Person implements Serializable {
     private Integer postalCode = null;
     private String city = "";
 
+    public Person() {
+
+    }
+
+    public Person(String firstName, String lastName, String email,
+            String phoneNumber, String streetAddress, int postalCode,
+            String city) {
+        setFirstName(firstName);
+        setLastName(lastName);
+        setEmail(email);
+        setPhoneNumber(phoneNumber);
+        setStreetAddress(streetAddress);
+        setPostalCode(postalCode);
+        setCity(city);
+    }
+
     /**
      * @return the firstName
      */
diff --git a/tests/testbench/com/vaadin/tests/util/Product.java b/tests/testbench/com/vaadin/tests/util/Product.java
new file mode 100644 (file)
index 0000000..46ec193
--- /dev/null
@@ -0,0 +1,40 @@
+package com.vaadin.tests.util;
+
+public class Product {
+
+    private String name;
+    private float price;
+    private String description;
+
+    public Product(String name, float price, String description) {
+        super();
+        this.name = name;
+        this.price = price;
+        this.description = description;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+
+    public float getPrice() {
+        return price;
+    }
+
+    public void setPrice(float price) {
+        this.price = price;
+    }
+
+}