HttpSenderUnitTest¶
-
public class
HttpSenderUnitTest
extends TestCase¶ The
HttpSenderUnitTest
is unit test ofHttpSender
. TODO: Inadequate Test-case for testing looping.Author: Twinsen Tsang
Fields¶
Methods¶
testLoopTimeProperty¶
-
public void
testLoopTimeProperty
()¶ Test
HttpSender.getLoopTimes()
andHttpSender.setLoopTimes(int)
*
testSendWithBasicAuthentication¶
-
public void
testSendWithBasicAuthentication
()¶ Test wether the HTTP sender able to send the HTTP header with ‘Authorization’ header.
testSendWithMultipart¶
-
public void
testSendWithMultipart
()¶ Test whether the HTTP sender able to send the HTTP header with multi-part to our monitor successfully.
testSendWithNoContent¶
-
public void
testSendWithNoContent
()¶ Test whether the HTTP sender able to send the HTTP header to our monitor successfully.
testSendWithParameter¶
-
public void
testSendWithParameter
()¶ Test whether the HTTP sender able to send the HTTP header with POST parameter to our monitor successfully.
testServiceEndpointPropertyWithInvalidData¶
-
public void
testServiceEndpointPropertyWithInvalidData
()¶ Test whether
HttpSender.setServiceEndPoint(String)
with invalid data.
testUserObjectProperty¶
-
public void
testUserObjectProperty
()¶ Test
HttpSender.getUserObject()
*