@Test public void test_validate_failures() { DetachCommand command = newCommand(); command.setSourceIdentifier(Identifier.valueOf("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 nodes must not be the same"))))); }
public void setSourceIdentifier(Identifier sourceIdentifier) { this.sourceIdentifier = sourceIdentifier; }
DetachCommand extends TopologyCommand { public void setSourceIdentifier(Identifier sourceIdentifier) { this.sourceIdentifier = sourceIdentifier; } }
DetachCommand extends TopologyCommand { public void setSourceIdentifier(Identifier sourceIdentifier) { this.sourceIdentifier = sourceIdentifier; }  }
DetachCommand extends TopologyCommand { public void setSourceIdentifier(Identifier sourceIdentifier) { this.sourceIdentifier = sourceIdentifier; }  void setStopWaitTime(Measure<TimeUnit> stopWaitTime); void setStopDelay(Measure<TimeUnit> stopDelay); void setSourceIdentifier(Identifier sourceIdentifier); @Override void validate(); }
DetachCommand extends TopologyCommand { public void setSourceIdentifier(Identifier sourceIdentifier) { this.sourceIdentifier = sourceIdentifier; }  void setStopWaitTime(Measure<TimeUnit> stopWaitTime); void setStopDelay(Measure<TimeUnit> stopDelay); void setSourceIdentifier(Identifier sourceIdentifier); @Override void validate();  }