[sip-comm-dev] Re: [sc1.0-cvs] CVS update: /sip-communicator-1-0-draft/test/net/java/sip/communicator/slick/contactlist/mockprovider/


#1

Hi Emil,

emcho@dev.java.net wrote:

User: emcho Date: 2006/02/16 05:55:25

Log:
Work on the MetaContactListService test suite

File Changes:

Directory: /sip-communicator-1-0-draft/test/net/java/sip/communicator/slick/contactlist/mockprovider/

[...]

/**
* A mock protocol provider implementation that comes with a single operation
* set (OperationSetPersistentPresence) for use by the MetaContactListSlcik.
*
* @author Emil Ivov
*/

What is a mock protocol? Is is related to MetaContactListService?

Martin

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Hey Martin,

I am planning on using mock protocol providers inside the MetaContactListServiceLick.

The purpose in life of the meta contact list is to provide a unified interface to the contact lists available through the various protocol providers. So what it does exactly is get protocol providers, retrieve their server stored contact lists (if any) and create meta contacts for them.

The purpose of a mock provider is to therefore provide dummy data to a tested implementation of the MetaContactListService so that the tests could verify whether this implementation has properly retrieved the dummy data.

The same goes of course for creating new contacts and contact groups across various providers.

Does that answer the question?

Emil

Martin Andr� wrote:

···

Hi Emil,

emcho@dev.java.net wrote:

User: emcho Date: 2006/02/16 05:55:25

Log:
Work on the MetaContactListService test suite

File Changes:

Directory: /sip-communicator-1-0-draft/test/net/java/sip/communicator/slick/contactlist/mockprovider/

[...]

/**
* A mock protocol provider implementation that comes with a single operation
* set (OperationSetPersistentPresence) for use by the MetaContactListSlcik.
*
* @author Emil Ivov
*/

What is a mock protocol? Is is related to MetaContactListService?

Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

Yes. That's exactly the point.

Emil

Martin Andr� wrote:

···

Emil Ivov wrote:

Hey Martin,

I am planning on using mock protocol providers inside the MetaContactListServiceLick.

The purpose in life of the meta contact list is to provide a unified interface to the contact lists available through the various protocol providers. So what it does exactly is get protocol providers, retrieve their server stored contact lists (if any) and create meta contacts for them.

The purpose of a mock provider is to therefore provide dummy data to a tested implementation of the MetaContactListService so that the tests could verify whether this implementation has properly retrieved the dummy data.

The same goes of course for creating new contacts and contact groups across various providers.

Does that answer the question?

If I understand well, the objective is here to test the MetaContactListService independently of any ProtocolProvider implementation. Right?

Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net