예제 #1
0
 /** Method: getHostName() */
 @Test
 public void testGetHostName() throws Exception {
   Assert.assertEquals("HostName == myhost", cd.getHostName(), "myhost");
 }
예제 #2
0
 /** Method: getData() */
 @Test
 public void testGetData() throws Exception {
   Assert.assertEquals(
       "bytes should match the input bytes", new String(cd.getData()), "test data");
 }
예제 #3
0
 /** Method: getIpAddress() */
 @Test
 public void testGetIpAddress() throws Exception {
   Assert.assertEquals("IP Address == 10.10.10.10", cd.getIpAddress(), "10.10.10.10");
 }