From bf3c748b271538963074bcd94ac8ba952eabbb5a Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Thu, 6 Oct 2011 13:49:39 +0000 Subject: [PATCH] A basic semi generic Form test svn changeset:21613/svn branch:6.7 --- .../com/vaadin/tests/util/Person.java | 16 ++++++++ .../com/vaadin/tests/util/Product.java | 40 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 tests/testbench/com/vaadin/tests/util/Product.java diff --git a/tests/testbench/com/vaadin/tests/util/Person.java b/tests/testbench/com/vaadin/tests/util/Person.java index 822f62d17a..c3e7a69d56 100644 --- a/tests/testbench/com/vaadin/tests/util/Person.java +++ b/tests/testbench/com/vaadin/tests/util/Person.java @@ -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 index 0000000000..46ec1935b0 --- /dev/null +++ b/tests/testbench/com/vaadin/tests/util/Product.java @@ -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; + } + +} -- 2.39.5