@Test public void shouldInitializeUserWithDefaultRole() { final User user = new User(); Assert.assertEquals(user.getRole(), UserRole.REGISTERED); }
public UserRole getRole() { return role; }
User implements Serializable { public UserRole getRole() { return role; } }
User implements Serializable { public UserRole getRole() { return role; } User();  User(Long id); }
User implements Serializable { public UserRole getRole() { return role; } User();  User(Long id); Long getId(); void setId(Long id); String getUsername(); void setUsername(String username); String getEmail(); void setEmail(String email); UserRole getRole(); void setRole(UserRole role); @JsonIgnore Set<Project> getProjectsOwner(); @JsonIgnore void setProjectsOwner(Set<Project> projectsOwner); @JsonIgnore Set<Project> getProjectsMember(); @JsonIgnore void setProjectsMember(Set<Project> projectsMember); @JsonIgnore List<Long> getProjectsMemberIds(); @JsonIgnore List<Long> getProjectsOwnerIds(); @JsonIgnore @JsonProperty("password") String getPassword(); void setPassword(String password); @JsonIgnore void setEncryptedPassword(String plainPassword); @JsonIgnore boolean isValidPassword(String plainPasswordToCheck); @JsonIgnore @JsonProperty("salt") String getSalt(); void setSalt(String salt); List<Webhook> getWebhooks(); void setWebhooks(List<Webhook> webhooks); @Override @SuppressWarnings("checkstyle:needbraces") // Auto generated by IntelliJ boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
User implements Serializable { public UserRole getRole() { return role; } User();  User(Long id); Long getId(); void setId(Long id); String getUsername(); void setUsername(String username); String getEmail(); void setEmail(String email); UserRole getRole(); void setRole(UserRole role); @JsonIgnore Set<Project> getProjectsOwner(); @JsonIgnore void setProjectsOwner(Set<Project> projectsOwner); @JsonIgnore Set<Project> getProjectsMember(); @JsonIgnore void setProjectsMember(Set<Project> projectsMember); @JsonIgnore List<Long> getProjectsMemberIds(); @JsonIgnore List<Long> getProjectsOwnerIds(); @JsonIgnore @JsonProperty("password") String getPassword(); void setPassword(String password); @JsonIgnore void setEncryptedPassword(String plainPassword); @JsonIgnore boolean isValidPassword(String plainPasswordToCheck); @JsonIgnore @JsonProperty("salt") String getSalt(); void setSalt(String salt); List<Webhook> getWebhooks(); void setWebhooks(List<Webhook> webhooks); @Override @SuppressWarnings("checkstyle:needbraces") // Auto generated by IntelliJ boolean equals(Object o); @Override int hashCode(); @Override String toString();  }