Damian,

Thanks for the comment on  XCF-2763.

For unit testing, I was trying to create mock SipxServiceManage so that
it returns SipxRegistrarService. Part of the change is to loadSettings
to SipxRegistrarService. The following is the code segment in
PhoneTestDriver::PhoneTestDriver(Phone _phone, List<User> users, boolean
phonebookManagementEnabled):

           SipxRegistrarService registrarService = new
SipxRegistrarService();
 
registrarService.setSettings(TestHelper.loadSettings("/sipxregistrar/sip
xregistrar.xml"));

        final SipxServiceManager sipxServiceManager =
EasyMock.createMock(SipxServiceManager.class);

 
sipxServiceManager.getServiceByBeanId(SipxRegistrarService.BEAN_ID);
 
EasyMock.expectLastCall().andReturn(registrarService).anyTimes();

        EasyMock.replay(sipxServiceManager);
 
m_phoneContext.getPhoneDefaults().setSipxServiceManager(sipxServiceManag
er);



However, unit tests for phone plugins failed because the path of
sipxregistrar.xml is not correct for plugins. For example, aastra is
expecting:
/home/huijun/Xecs/main/sipXconfig/plugins/aastra/etc/sipxregistrar/sipxr
egistrar.xml

Any suggestion on this?

Thanks
Huijun



-----Original Message-----
From: Damian Krzeminski (JIRA) [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2008 7:51 PM
To: Yang, Huijun (CAR:9D30)
Subject: [SFtrack] Updated: (XCF-2763) Umbrella for a set of Polycom
features


     [
http://track.sipfoundry.org/browse/XCF-2763?page=com.atlassian.jira.plug
in.system.issuetabpanels:all-tabpanel ]

Damian Krzeminski updated XCF-2763:
-----------------------------------

    Attachment: 0002-Minor-polycom-fixes.patch
                0001-XCF-2763-updates-to-Polycom-plug-in.patch

Minor fixes on top of existing patch.

> Umbrella for a set of Polycom features
> --------------------------------------
>
>                 Key: XCF-2763
>                 URL: http://track.sipfoundry.org/browse/XCF-2763
>             Project: sipXconfig
>          Issue Type: New Feature
>          Components: polycom
>    Affects Versions: 4.0
>            Reporter: huijun yang
>         Attachments: 0001-XCF-2763-updates-to-Polycom-plug-in.patch, 
> 0002-Minor-polycom-fixes.patch, polycom_combo_new.patch
>
>
> This is a umbrella for a set of Polycom features:
> XCF-2740: Add support for new Polycom models: 6000, 7000, 560, 670
> XCF-2738: Remove Polycom SoundPoint IP "1.6" support
> XCF-2728: Enable Polycom Productivity Suite - Call Recording and 
> Conference Call
> XCF-2716: enable Polycom 3.1 firmware in sipXconfig, with new feature 
> to config
> XCF-2659: Change default Polycom digitmap value to blank

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

        
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to