@Test(dataProvider = "getSetValidStateParams") public void testSetValidState(SubnetState originalState, SubnetState newState) throws Exception { NetworkEntity network = new NetworkEntity(); network.setState(originalState); network.setState(newState); }
public void setState(SubnetState state) { if (this.getState() != null && state != null) { EntityStateValidator.validateStateChange(this.getState(), state, SubnetState.PRECONDITION_STATES); } this.state = state; }
NetworkEntity extends BaseEntity implements Named { public void setState(SubnetState state) { if (this.getState() != null && state != null) { EntityStateValidator.validateStateChange(this.getState(), state, SubnetState.PRECONDITION_STATES); } this.state = state; } }
NetworkEntity extends BaseEntity implements Named { public void setState(SubnetState state) { if (this.getState() != null && state != null) { EntityStateValidator.validateStateChange(this.getState(), state, SubnetState.PRECONDITION_STATES); } this.state = state; }  }
NetworkEntity extends BaseEntity implements Named { public void setState(SubnetState state) { if (this.getState() != null && state != null) { EntityStateValidator.validateStateChange(this.getState(), state, SubnetState.PRECONDITION_STATES); } this.state = state; }  @Override String getKind(); String getName(); void setName(String name); String getDescription(); void setDescription(String description); SubnetState getState(); void setState(SubnetState state); String getPortGroups(); void setPortGroups(String portGroups); Boolean getIsDefault(); void setIsDefault(Boolean isDefault); }
NetworkEntity extends BaseEntity implements Named { public void setState(SubnetState state) { if (this.getState() != null && state != null) { EntityStateValidator.validateStateChange(this.getState(), state, SubnetState.PRECONDITION_STATES); } this.state = state; }  @Override String getKind(); String getName(); void setName(String name); String getDescription(); void setDescription(String description); SubnetState getState(); void setState(SubnetState state); String getPortGroups(); void setPortGroups(String portGroups); Boolean getIsDefault(); void setIsDefault(Boolean isDefault);  }