示例#1
0
 @Test(expected = IllegalArgumentException.class)
 public void testPositivePortNumberTooBig() {
   testEntry.setPort(PORT_TOO_BIG);
 }
示例#2
0
 @Test(expected = IllegalArgumentException.class)
 public void testNegativePortNumber() {
   testEntry.setPort(NEGATIVE_PORT);
 }