Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 299851 - Small changes to AbstractRemoteServicesTest
Summary: Small changes to AbstractRemoteServicesTest
Status: RESOLVED FIXED
Alias: None
Product: ECF
Classification: RT
Component: ecf.test (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: ecf.test-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-16 13:50 EST by Pavel Samolisov CLA
Modified: 2010-01-18 09:17 EST (History)
1 user (show)

See Also:


Attachments
Changes (5.72 KB, patch)
2010-01-16 13:51 EST, Pavel Samolisov CLA
slewis: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Samolisov CLA 2010-01-16 13:50:46 EST
I'm working on OSCAR/ICQ provider for Eclipse Communication Framework
and implemented Remote Service API via OSCAR/ICQ.

I want suggest small changes to AbstractRemoteServicesTest:

1. add assertTrue(done); after waiting to method testServiceListener. If
do not check 'done' - test can be passed if even RemoteServiceListener
was not be invoked.

2. add protected method customizeProperties and invoked it for
customizing register services properties in other bundles. For example
in the org.eclipse.ecf.tests.provider.oscar I implemented this method:

protected Dictionary customizeProperties(Dictionary props) {
	Dictionary result = new Hashtable();
	// ...
	result.put(Constants.SERVICE_REGISTRATION_TARGETS,
getClient(1).getConnectedID());
	return result;
}

If we do not put Constants.SERVICE_REGISTRATION_TARGETS to properties,
test testServiceListener will not be passed because
adapters[0].registerRemoteService will not send message to
containers[1]. ICQ do not support predefined groups and do not send
broadcast messages.
Comment 1 Pavel Samolisov CLA 2010-01-16 13:51:30 EST
Created attachment 156315 [details]
Changes
Comment 2 Scott Lewis CLA 2010-01-18 09:17:55 EST
Patch applied to HEAD.  Thanks Pavel.  Resolving as fixed.