PartnershipSenderUnitTest

public class PartnershipSenderUnitTest extends TestCase

The PartnershipSenderUnitTest is unit test of PartnershipSender. TODO: Inadequate Test-case for error path.

Author:Twinsen Tsang

Fields

PASSWORD

public static final String PASSWORD

TEST_ENDPOINT

public static final String TEST_ENDPOINT

TEST_PORT

public static final int TEST_PORT

USER_NAME

public static final String USER_NAME

kvData

protected KVPairData kvData

logger

Logger logger

target

protected PartnershipSender target

The testing target which is an PartnershipSender and the associated data

testClassLogger

protected FileLogger testClassLogger

Methods

initTestData

public void initTestData()

Initialize the test data *

initTestTarget

public void initTestTarget()

Initialize the test target which is a PartnershipSender.

setUp

public void setUp()

Setup the fixture.

tearDown

public void tearDown()

Stop the HTTP monitor preventing JVM port binding *

testAddPartnership

public void testAddPartnership()

Test whether the add partnership request operation perform correctly *

testDeletePartnership

public void testDeletePartnership()

Test whether the update partnership request operation perform correctly *

testUpdatePartnership

public void testUpdatePartnership()

Test whether the update partnership request operation perform correctly *