@Test(expected = IllegalArgumentException.class) public void testChannelHigh() { TelegesisChangeChannelCommand command = new TelegesisChangeChannelCommand(); command.setChannel(27); }
public void setChannel(Integer channel) { if (channel < 11 || channel > 26) { throw(new IllegalArgumentException("Illegal value passed for channel. Range is 11 to 26.")); } this.channel = channel; }
TelegesisChangeChannelCommand extends TelegesisFrame implements TelegesisCommand { public void setChannel(Integer channel) { if (channel < 11 || channel > 26) { throw(new IllegalArgumentException("Illegal value passed for channel. Range is 11 to 26.")); } this.channel = channel; } }
TelegesisChangeChannelCommand extends TelegesisFrame implements TelegesisCommand { public void setChannel(Integer channel) { if (channel < 11 || channel > 26) { throw(new IllegalArgumentException("Illegal value passed for channel. Range is 11 to 26.")); } this.channel = channel; }  }
TelegesisChangeChannelCommand extends TelegesisFrame implements TelegesisCommand { public void setChannel(Integer channel) { if (channel < 11 || channel > 26) { throw(new IllegalArgumentException("Illegal value passed for channel. Range is 11 to 26.")); } this.channel = channel; }  void setChannel(Integer channel); @Override int[] serialize(); @Override boolean deserialize(int[] data); @Override String toString(); }
TelegesisChangeChannelCommand extends TelegesisFrame implements TelegesisCommand { public void setChannel(Integer channel) { if (channel < 11 || channel > 26) { throw(new IllegalArgumentException("Illegal value passed for channel. Range is 11 to 26.")); } this.channel = channel; }  void setChannel(Integer channel); @Override int[] serialize(); @Override boolean deserialize(int[] data); @Override String toString();  }