I am trying to mock the behaviour of the application. ( ex. travelocity
sample) that sends SAML requests to IS. Not the behaviour of IS ( Start IS
and send requests to it).

Here I am trying to avoid launching the application inside Tomcat during
the test and mock the behaviour of the application.
On Jul 2, 2014 6:07 PM, "Krishantha Samaraweera" <[email protected]>
wrote:

>
> On Wed, Jul 2, 2014 at 2:12 PM, Chamil Jeewantha <[email protected]> wrote:
>
>> Hi Prasad,
>>
>> Mocking is good for unit tests. but its better if you minimize mocks on
>> Integration tests.
>>
>
> +1, mocking is not recommended when it comes to integration and platform
> tests. Unit tests have full control over all the pieces running, that's why
> unit tests might require mocking.
>
> Thanks,
> Krishantha.
>
>
>>
>> Regards,
>> Chamil
>>
>>
>> On Wed, Jul 2, 2014 at 2:09 PM, Prasad Tissera <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> I am writing integration tests for SAML sso scenarios. We have a sample
>>> web application which can send SAML requests to IS. IS sends SAML response
>>> to the Assertion Consumer URL. Is there a way to mock this scenario in
>>> integration tests, without launching the sample application inside a tomcat
>>> container during the test?
>>>
>>> --
>>> Prasad Tissera
>>> Software Engineer.
>>> Mobile : +94777223444
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> K.D. Chamil Jeewantha
>> Associate Technical Lead
>> WSO2, Inc.;  http://wso2.com
>> Mobile: +94716813892
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to