@Test public final void testSetRole() { testGetInstance(); final ServerIdentity serverIdentity = ServerIdentity.getInstance(); final String name = serverIdentity.getName(); final int pid = serverIdentity.getGlobalPlatformId(); serverIdentity.setRole("name2"); assertEquals("Server Role test", "name2", serverIdentity.getRole()); assertEquals("Name still the same", name, serverIdentity.getName()); assertEquals("Pid still the same", pid, serverIdentity.getGlobalPlatformId()); }
public final ServerIdentity setRole(String role) { ParametersChecker.checkParameter("Role", role); this.role = role; initializeCommentFormat(); return this; }
ServerIdentity implements ServerIdentityInterface { public final ServerIdentity setRole(String role) { ParametersChecker.checkParameter("Role", role); this.role = role; initializeCommentFormat(); return this; } }
ServerIdentity implements ServerIdentityInterface { public final ServerIdentity setRole(String role) { ParametersChecker.checkParameter("Role", role); this.role = role; initializeCommentFormat(); return this; } private  ServerIdentity(); }
ServerIdentity implements ServerIdentityInterface { public final ServerIdentity setRole(String role) { ParametersChecker.checkParameter("Role", role); this.role = role; initializeCommentFormat(); return this; } private  ServerIdentity(); @JsonIgnore @Override final String getLoggerMessagePrepend(); @JsonIgnore final String getJsonIdentity(); static final ServerIdentity getInstance(); @JsonIgnore final ServerIdentity setFromPropertyFile(File propertiesFile); @JsonIgnore final ServerIdentity setFromYamlFile(File yamlFile); @JsonIgnore final ServerIdentity setFromMap(Map<String, Object> map); @Override final String getName(); final ServerIdentity setName(String name); @Override final String getRole(); final ServerIdentity setRole(String role); @Override final int getGlobalPlatformId(); final ServerIdentity setServerId(int serverId); @Override final int getServerId(); @Override final int getSiteId(); final ServerIdentity setSiteId(int siteId); }
ServerIdentity implements ServerIdentityInterface { public final ServerIdentity setRole(String role) { ParametersChecker.checkParameter("Role", role); this.role = role; initializeCommentFormat(); return this; } private  ServerIdentity(); @JsonIgnore @Override final String getLoggerMessagePrepend(); @JsonIgnore final String getJsonIdentity(); static final ServerIdentity getInstance(); @JsonIgnore final ServerIdentity setFromPropertyFile(File propertiesFile); @JsonIgnore final ServerIdentity setFromYamlFile(File yamlFile); @JsonIgnore final ServerIdentity setFromMap(Map<String, Object> map); @Override final String getName(); final ServerIdentity setName(String name); @Override final String getRole(); final ServerIdentity setRole(String role); @Override final int getGlobalPlatformId(); final ServerIdentity setServerId(int serverId); @Override final int getServerId(); @Override final int getSiteId(); final ServerIdentity setSiteId(int siteId);  }