Ejemplo n.º 1
0
 @Test(expected = IllegalArgumentException.class)
 public void testPositivePortNumberTooBig() {
   testEntry.setPort(PORT_TOO_BIG);
 }
Ejemplo n.º 2
0
 @Test(expected = IllegalArgumentException.class)
 public void testNegativePortNumber() {
   testEntry.setPort(NEGATIVE_PORT);
 }