@Test public void testUser() { User user = new User(1L, "1", "3", "4", 0); Assert.assertEquals((Long)1L, user.getId()); Assert.assertEquals("3", user.getMail()); Assert.assertEquals("4", user.getImgUrl()); Assert.assertEquals((Integer)0, user.getRole()); Assert.assertEquals("1", user.getUsername()); }
public User(long id, String username, String mail, String imgUrl, Integer role) { setId(id); setImgUrl(imgUrl); setMail(mail); setUsername(username); setRole(role); }
User { public User(long id, String username, String mail, String imgUrl, Integer role) { setId(id); setImgUrl(imgUrl); setMail(mail); setUsername(username); setRole(role); } }
User { public User(long id, String username, String mail, String imgUrl, Integer role) { setId(id); setImgUrl(imgUrl); setMail(mail); setUsername(username); setRole(role); } User(long id, String username, String mail, String imgUrl, Integer role); }
User { public User(long id, String username, String mail, String imgUrl, Integer role) { setId(id); setImgUrl(imgUrl); setMail(mail); setUsername(username); setRole(role); } User(long id, String username, String mail, String imgUrl, Integer role); Integer getRole(); void setRole(Integer role); Long getId(); void setId(Long id); String getUsername(); String getImgUrl(); String getMail(); void setMail(String mail); void setImgUrl(String imgUrl); void setUsername(String username); }
User { public User(long id, String username, String mail, String imgUrl, Integer role) { setId(id); setImgUrl(imgUrl); setMail(mail); setUsername(username); setRole(role); } User(long id, String username, String mail, String imgUrl, Integer role); Integer getRole(); void setRole(Integer role); Long getId(); void setId(Long id); String getUsername(); String getImgUrl(); String getMail(); void setMail(String mail); void setImgUrl(String imgUrl); void setUsername(String username);  }