919293949596979899100101102
this.mockJsfUtil = null; } @Test public void testPhone() { Registration registration = new Registration(); registration.setPhone("+436641234567"); Assert.assertEquals(registration.getPhone(), "+436641234567"); }
110111112113114115116117118119120
} @Test public void testBadNames() { Registration registration = new Registration(); String[] badNames = { "admin" }; registration.setBadNames(badNames); Assert.assertSame(badNames, registration.getBadNames()); }
120121122123124125126127128129130
} @Test public void testFirstName() { Registration registration = new Registration(); String fName = "Mathias"; registration.setfName(fName); Assert.assertEquals(fName, registration.getfName()); }
130131132133134135136137138139140
} @Test public void testLastName() { Registration registration = new Registration(); String lName = "Meier"; registration.setlName(lName); Assert.assertEquals(lName, registration.getlName()); }
140141142143144145146147148149150
} @Test public void testEmail() { Registration registration = new Registration(); String eMail = "test.testen@fh-joanneum.at"; registration.seteMail(eMail); Assert.assertEquals(eMail, registration.geteMail()); }
150151152153154155156157158159160
} @Test public void testUser1Name() { Registration registration = new Registration(); String userName = "meier2312"; registration.setUserName(userName); Assert.assertEquals(userName, registration.getUserName()); }
160161162163164165166167168169170
} @Test public void testPassword() { Registration registration = new Registration(); String password = "xxxxxx"; registration.setPassword(password); Assert.assertEquals(password, registration.getPassword()); }
170171172173174175176177178179180
} @Test public void testPasswordConfirm() { Registration registration = new Registration(); String password2 = "xxxxxx"; registration.setPassword2(password2); Assert.assertEquals(password2, registration.getPassword2()); }
180181182183184185186187188189190
} @Test public void testCity() { Registration registration = new Registration(); String city = "Graz"; registration.setCity(city); Assert.assertEquals(city, registration.getCity()); }
190191192193194195196197198199200
} @Test public void testPhone1() { Registration registration = new Registration(); String phone = "+436645689745"; registration.setPhone(phone); Assert.assertEquals(phone, registration.getPhone()); }