Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 10712 invoked from network); 9 Nov 2006 11:11:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Nov 2006 11:11:05 -0000 Received: (qmail 79353 invoked by uid 500); 9 Nov 2006 11:11:11 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 79288 invoked by uid 500); 9 Nov 2006 11:11:11 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 79272 invoked by uid 99); 9 Nov 2006 11:11:11 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Nov 2006 03:11:10 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Nov 2006 03:10:59 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 218447142FA for ; Thu, 9 Nov 2006 03:10:39 -0800 (PST) Message-ID: <8232133.1163070639134.JavaMail.jira@brutus> Date: Thu, 9 Nov 2006 03:10:39 -0800 (PST) From: "Deepal Jayasinghe (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2-1474) Create ServiceClient interface to allow mocking in unit tests In-Reply-To: <19992937.1161625876540.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/AXIS2-1474?page=all ] Deepal Jayasinghe resolved AXIS2-1474. -------------------------------------- Resolution: Won't Fix > 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