Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 191885 Details for
Bug 340510
ServiceHandlerExtensionTest has a compile error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Fix for compile problem
ServiceHandlerExtensionTest.txt (text/plain), 1.88 KB, created by
Frank Appel
on 2011-03-25 02:45:56 EDT
(
hide
)
Description:
Fix for compile problem
Filename:
MIME Type:
Creator:
Frank Appel
Created:
2011-03-25 02:45:56 EDT
Size:
1.88 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rap.ui.tests >Index: RAP UI Tests/org/eclipse/rap/ui/tests/ServiceHandlerExtensionTest.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/runtime.ui.test/org.eclipse.rap.ui.tests/RAP UI Tests/org/eclipse/rap/ui/tests/ServiceHandlerExtensionTest.java,v >retrieving revision 1.1 >diff -u -r1.1 ServiceHandlerExtensionTest.java >--- RAP UI Tests/org/eclipse/rap/ui/tests/ServiceHandlerExtensionTest.java 22 Mar 2010 13:56:43 -0000 1.1 >+++ RAP UI Tests/org/eclipse/rap/ui/tests/ServiceHandlerExtensionTest.java 25 Mar 2011 06:42:39 -0000 >@@ -15,18 +15,34 @@ > > import org.eclipse.rap.ui.tests.impl.ServiceHandler1; > import org.eclipse.rap.ui.tests.impl.ServiceHandler2; >+import org.eclipse.rwt.Fixture; > import org.eclipse.rwt.internal.service.ServiceManager; > import org.eclipse.rwt.service.IServiceHandler; > > public class ServiceHandlerExtensionTest extends TestCase { > >- public void testServieHandlerRegistration() { >- IServiceHandler handler = ServiceManager.getCustomHandler( "myHandler1" ); >+ public void testServiceHandler1Registration() { >+ Fixture.fakeRequestParam( IServiceHandler.REQUEST_PARAM, "myHandler1" ); >+ >+ IServiceHandler handler = ServiceManager.getHandler(); > assertNotNull( handler ); > assertTrue( handler instanceof ServiceHandler1 ); >- handler = ServiceManager.getCustomHandler( "myHandler2" ); >+ } >+ >+ public void testServiceHandler2Registration() { >+ Fixture.fakeRequestParam( IServiceHandler.REQUEST_PARAM, "myHandler2" ); >+ >+ IServiceHandler handler = ServiceManager.getHandler(); > assertNotNull( handler ); > assertTrue( handler instanceof ServiceHandler2 ); > } >+ >+ protected void setUp() { >+ Fixture.fakeNewRequest(); >+ } >+ >+ protected void tearDown() { >+ Fixture.tearDown(); >+ } > > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 340510
: 191885