axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepal Jayasinghe (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-1474) Create ServiceClient interface to allow mocking in unit tests
Date Tue, 24 Oct 2006 06:52:17 GMT
    [ http://issues.apache.org/jira/browse/AXIS2-1474?page=comments#action_12444224 ] 
            
Deepal Jayasinghe commented on AXIS2-1474:
------------------------------------------

As I can understand ,in your case best thing is to use OperatonClient. And I dont think that
we can change ServiceClient API , before we introduce ServiceClient we had set of interfaces
for the client side and which were real pain. That is why we removed them and come up with
new ServiceClient API.

So try to use operationClient and see whether you can achieve your goal.


> Create ServiceClient interface to allow mocking in unit tests
> -------------------------------------------------------------
>
>                 Key: AXIS2-1474
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1474
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: client-api
>            Reporter: Jeff Peterson
>            Priority: Minor
>
> Frequently when I write unit tests I find myself wanting to mock the ServiceClient object.
 I usually have to resort to writing a generic wrapper around service client to achieve this
functionality.  It would be much easier if the ServiceClient class was restructured into a
ServiceClient interface and ServiceClientImpl class, or something similar.  I think this would
greatly improve the unit testability of client-side code which uses the Axis2 API's.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message