@Test public void whenNotPart() { ServerGroup serverGroup = new ConvertingServerGroup("creative"); assertEquals("creative", serverGroup.getName()); }
@Override public String getName() { int separatorIndex = serverName.indexOf('-'); if (separatorIndex > 0) { return serverName.substring(0, separatorIndex); } return serverName; }
ConvertingServerGroup implements ServerGroup { @Override public String getName() { int separatorIndex = serverName.indexOf('-'); if (separatorIndex > 0) { return serverName.substring(0, separatorIndex); } return serverName; } }
ConvertingServerGroup implements ServerGroup { @Override public String getName() { int separatorIndex = serverName.indexOf('-'); if (separatorIndex > 0) { return serverName.substring(0, separatorIndex); } return serverName; } ConvertingServerGroup(ServerName serverName); }
ConvertingServerGroup implements ServerGroup { @Override public String getName() { int separatorIndex = serverName.indexOf('-'); if (separatorIndex > 0) { return serverName.substring(0, separatorIndex); } return serverName; } ConvertingServerGroup(ServerName serverName); @Override String getName(); }
ConvertingServerGroup implements ServerGroup { @Override public String getName() { int separatorIndex = serverName.indexOf('-'); if (separatorIndex > 0) { return serverName.substring(0, separatorIndex); } return serverName; } ConvertingServerGroup(ServerName serverName); @Override String getName();  }