sshikov / jsendnsca

Automatically exported from code.google.com/p/jsendnsca
0 stars 0 forks source link

MessagePayload.setLevel(int) doesnt check the int value #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Following testcase should pass

@Test(expected = IllegalArgumentException.class)
public void shouldThrowIllegalArgumentExceptionForInvalidLevel() throws
Exception {
final MessagePayload messagePayload = new MessagePayload();

messagePayload.setLevel(4);
}

You should only be able to set level to 0,1,2,3

Original issue reported on code.google.com by rajneeshpatel on 18 Dec 2008 at 11:07

GoogleCodeExporter commented 9 years ago
set version labels

Original comment by rajneeshpatel on 18 Dec 2008 at 11:09

GoogleCodeExporter commented 9 years ago

Original comment by rajneeshpatel on 18 Dec 2008 at 11:10

GoogleCodeExporter commented 9 years ago
updated in error

Original comment by rajneeshpatel on 18 Dec 2008 at 11:11

GoogleCodeExporter commented 9 years ago
fixed code checked in and test now passes

Original comment by rajneeshpatel on 18 Dec 2008 at 11:33