PartnershipOpVeriferUnitTest

public class PartnershipOpVeriferUnitTest extends TestCase

The PartnershipOpVeriferUnitTest is unit test of PartnershipOpVerifer.

Author:Twinsen Tsang

Fields

ADDOP_SUCCESS_SAMPLE

public static final String ADDOP_SUCCESS_SAMPLE

DELETEOP_SUCCESS_SAMPLE

public static final String DELETEOP_SUCCESS_SAMPLE

ERROR_SAMPLE_0

public static final String ERROR_SAMPLE_0

ERROR_SAMPLE_1

public static final String ERROR_SAMPLE_1

UPDATEOP_SUCCESS_SAMPLE

public static final String UPDATEOP_SUCCESS_SAMPLE

logger

Logger logger

Methods

initTestTarget

public void initTestTarget()

Initialize the test target which is a Partnership Operation Verifier.

setUp

public void setUp()

Setup the fixture.

tearDown

public void tearDown()

Setup the fixture.

testValidateAddSuccess

public void testValidateAddSuccess()

Test whether the validation process execute property for add operation executed properly. *

testValidateDeleteSuccess

public void testValidateDeleteSuccess()

Test whether the validation process execute property for delete operation executed properly. *

testValidateUpdateSuccess

public void testValidateUpdateSuccess()

Test whether the validation process execute property for update operation executed properly. *

testValidateWithErrorSample0

public void testValidateWithErrorSample0()

Test whether the validation process throw exception when the HTML content violate the field constraint (this case, ‘Retry Interval must be integer’);

testValidateWithErrorSample1

public void testValidateWithErrorSample1()

Test whether the validation process throw exception when the HTML content violate the field constraint (this case, ‘CPA ID cannot be empty’);

testValidateWithNullStream

public void testValidateWithNullStream()

Test whether it throws exception when null stream is passed as arugment *