Package at.fhj.itm.beans

Examples of at.fhj.itm.beans.Registration


    this.mockJsfUtil = null;
  }

  @Test
  public void testPhone() {
    Registration registration = new Registration();

    registration.setPhone("+436641234567");

    Assert.assertEquals(registration.getPhone(), "+436641234567");

  }
View Full Code Here


  }

  @Test
  public void testBadNames() {

    Registration registration = new Registration();
    String[] badNames = { "admin" };
    registration.setBadNames(badNames);
    Assert.assertSame(badNames, registration.getBadNames());

  }
View Full Code Here

  }

  @Test
  public void testFirstName() {

    Registration registration = new Registration();
    String fName = "Mathias";
    registration.setfName(fName);
    Assert.assertEquals(fName, registration.getfName());

  }
View Full Code Here

  }

  @Test
  public void testLastName() {

    Registration registration = new Registration();
    String lName = "Meier";
    registration.setlName(lName);
    Assert.assertEquals(lName, registration.getlName());

  }
View Full Code Here

  }

  @Test
  public void testEmail() {

    Registration registration = new Registration();
    String eMail = "test.testen@fh-joanneum.at";
    registration.seteMail(eMail);
    Assert.assertEquals(eMail, registration.geteMail());

  }
View Full Code Here

  }

  @Test
  public void testUser1Name() {

    Registration registration = new Registration();
    String userName = "meier2312";
    registration.setUserName(userName);
    Assert.assertEquals(userName, registration.getUserName());

  }
View Full Code Here

  }

  @Test
  public void testPassword() {

    Registration registration = new Registration();
    String password = "xxxxxx";
    registration.setPassword(password);
    Assert.assertEquals(password, registration.getPassword());

  }
View Full Code Here

  }

  @Test
  public void testPasswordConfirm() {

    Registration registration = new Registration();
    String password2 = "xxxxxx";
    registration.setPassword2(password2);
    Assert.assertEquals(password2, registration.getPassword2());

  }
View Full Code Here

  }

  @Test
  public void testCity() {

    Registration registration = new Registration();
    String city = "Graz";
    registration.setCity(city);
    Assert.assertEquals(city, registration.getCity());

  }
View Full Code Here

  }

  @Test
  public void testPhone1() {

    Registration registration = new Registration();
    String phone = "+436645689745";
    registration.setPhone(phone);
    Assert.assertEquals(phone, registration.getPhone());

  }
View Full Code Here

TOP

Related Classes of at.fhj.itm.beans.Registration

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.