Package jodd.json.mock

Examples of jodd.json.mock.Address


import java.util.Map;

public class DataCreator {

  public Person createJodder() {
    Address home = new Address("173 Hackers Drive", "New York", "NY", new Zipcode("123123"));
    Address work = new Address("42 Computer Center", "Earth", "Milkiway", new Zipcode("42"));

    Phone pagerPhone = new Phone(PhoneNumberType.PAGER, "123 555-1234");
    Phone cellPhone = new Phone(PhoneNumberType.MOBILE, "770 777 5432");

    Calendar cal = Calendar.getInstance();
View Full Code Here


    return charlie;
  }

  public Person createModesty() {
    Address benhome = new Address("NN Island", "Blue Cave", "ta", new Zipcode("82742"));
    Address benwork = new Address("44 Planetary St.", "Neptune", "Milkiway", new Zipcode("12345"));

    Calendar benCal = Calendar.getInstance();
    benCal.set(1986, Calendar.AUGUST, 8, 8, 11);
    Person ben = new Person("Modesty", "Blase", benCal.getTime(), benhome, benwork);
    benCal = Calendar.getInstance();
View Full Code Here

    return ben;
  }

  public Person createPedro() {
    Zipcode pedroZip = new Zipcode("848485");
    Address pedroHome = new Address("12 Acrel\u00E8ndia Way", "Rio de Janeiro", "Brazil", pedroZip);
    Address pedroWork = new Address("12 Acrel\u00E8ndia Way", "Rio de Janeiro", "Brazil", pedroZip);

    Phone pedroPhone = new Phone(PhoneNumberType.MOBILE, "123 555 2323");

    Calendar pedroCal = Calendar.getInstance();
    pedroCal.set(1980, Calendar.APRIL, 12, 11, 45);
View Full Code Here

    return pedro;
  }

  public Employee createDilbert() {
    return new Employee("Dilbert", "", new Date(),
        new Address("123 Finland Dr", "Cubicleville", "Hell", new Zipcode("66666")),
        new Address("123 Finland Dr", "Cubicleville", "Hell", new Zipcode("66666")), "Initech");
  }
View Full Code Here

TOP

Related Classes of jodd.json.mock.Address

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.