void function ( ) { mode = null ; url = null ; List < String > loc0 = hubValidator . validatePing ( mode , url ) ; assertNotNull ( loc0 ) ; assertEquals ( 2 , loc0 . size ( ) ) ; assertEquals ( "srini_string" , loc0 . get ( 0 ) ) ; assertEquals ( "srini_string" , loc0 . get ( 1 ) ) ; }
invalid scenario : mode and url must be provided concode_field_sep String mode concode_elem_sep HubValidator hubValidator concode_elem_sep String topic concode_elem_sep String callbackUrl concode_elem_sep String secret concode_elem_sep String url concode_elem_sep String leaseSeconds concode_field_sep void validateSubscriptionWithException concode_elem_sep void validateSubscriptionWithEmptyStringsAndInvalidLeaseSeconds concode_elem_sep void validateSubscriptionWithValidModesAndOtherMandatoryFieldsNull concode_elem_sep void validateSubscriptionWithInvalidModes concode_elem_sep void validatePingTest concode_elem_sep void validatePingWithValidUrl concode_elem_sep void validatePingWithValidParams concode_elem_sep void validateSubscriptionWithValidLeaseSeconds concode_elem_sep void validatePingWithEmptyStrings concode_elem_sep void validatePingWithValidMode concode_elem_sep void validateSubscriptionTest concode_elem_sep void validateSubscriptionWithValidTopic concode_elem_sep void validateSubscriptionWithValidCallBackUrl concode_elem_sep void validatePingWithInvalidMode concode_elem_sep void validateSubscriptionWithNullStrings concode_elem_sep void setUp