コード例 #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");
 }