@Test public void test_validate_failures() { AttachCommand command = newCommand(); command.setSourceAddress(InetSocketAddress.createUnresolved("localhost", 9410)); command.setOperationType(NODE); command.setDestinationAddress(InetSocketAddress.createUnresolved("localhost", 9410)); assertThat( command::run, is(throwing(instanceOf(IllegalArgumentException.class)).andMessage(is(equalTo("The destination and the source endpoints must not be the same"))))); }
public void setSourceAddress(InetSocketAddress sourceAddress) { this.sourceAddress = sourceAddress; }
AttachCommand extends TopologyCommand { public void setSourceAddress(InetSocketAddress sourceAddress) { this.sourceAddress = sourceAddress; } }
AttachCommand extends TopologyCommand { public void setSourceAddress(InetSocketAddress sourceAddress) { this.sourceAddress = sourceAddress; }  }
AttachCommand extends TopologyCommand { public void setSourceAddress(InetSocketAddress sourceAddress) { this.sourceAddress = sourceAddress; }  void setSourceAddress(InetSocketAddress sourceAddress); void setRestartWaitTime(Measure<TimeUnit> restartWaitTime); void setRestartDelay(Measure<TimeUnit> restartDelay); @Override void validate(); }
AttachCommand extends TopologyCommand { public void setSourceAddress(InetSocketAddress sourceAddress) { this.sourceAddress = sourceAddress; }  void setSourceAddress(InetSocketAddress sourceAddress); void setRestartWaitTime(Measure<TimeUnit> restartWaitTime); void setRestartDelay(Measure<TimeUnit> restartDelay); @Override void validate();  }