public abstract class GwtGuiceCsvTest extends GwtCsvTest
Base class for CSV tests that needs to be run with a backend configured with Google Guice.
You can inject any object in subclasses. For RemoteService objects, see the
getRpcServiceFromInjector(Injector, Class, String) method which you might
want to override to get deferred binding working as you need in test mode.
The getInjector() also provides a default way to get a working Guice
Injector for your test.
csvRunner| Constructor and Description |
|---|
GwtGuiceCsvTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeGwtGuiceTest()
Guice test initialization method.
|
protected com.google.inject.Injector |
getInjector()
Get the Guice injector to use.
|
protected Object |
getRpcServiceFromInjector(com.google.inject.Injector injector,
Class<?> remoteServiceClass,
String remoteServiceRelativePath)
Retrieve a GWT RPC service from a Guice injector.
|
afterGwtCsvTest, assertBiggerThan, assertContains, assertEmpty, assertExact, assertFalse, assertHTML, assertInstanceOf, assertListBoxDataEquals, assertListBoxSelectedValueIs, assertNotExist, assertNumberExact, assertSmallerThan, assertText, assertTrue, blur, callMethod, change, click, clickComplexPanel, clickGridCell, clickMenuItem, doesNotHaveStyle, emptyTextBox, fillAndSelectInSuggestBoxByIndex, fillAndSelectInSuggestBoxByText, fillInvisibleTextBox, fillTextBox, focus, getCsvTestExecutionHandlers, getDefaultBrowserErrorHandler, getFocusWidget, getString, getString, getWidgetVisitor, hasStyle, interactive, isChecked, isEnabled, isNotChecked, isNotEnabled, isNotVisible, isVisible, launchTest, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, prefix, registerCsvInvocationHandler, runmacro, selectInListBox, selectInListBox, selectInListBoxByIndex, selectInListBoxByText, setReaderbindClassLoader, createJUnit4TestAdapter, setUpGwtTest, tearDownGwtTest, unbindClassLoaderaddClientProperty, addDictionaryEntries, addGwtCreateHandler, addUiObjectTagFactory, afterTest, canDispatchEventsOnDetachedWidgets, ensureDebugId, getBrowserErrorHandler, getBrowserSimulator, getClientProperty, getClientPropertyNames, getHostPagePath, getHostPagePath, getLocale, getLogHandler, getRemoteServiceExecutionHandlers, getServletMockProvider, getWindowOperationsHandler, isLocalStorageSupported, isSessionStorageSupported, registerRemoteServiceExecutionHandler, setBrowserErrorHandler, setCanDispatchEventsOnDetachedWidgets, setIsClient, setLocale, setLocalStorageSupported, setLogHandler, setServletMockProvider, setSessionStorageSupported, setWindowOperationsHandlerpublic void beforeGwtGuiceTest()
protected com.google.inject.Injector getInjector()
GuiceServletContextListener to retrieve its internal Injector by
introspection.protected Object getRpcServiceFromInjector(com.google.inject.Injector injector, Class<?> remoteServiceClass, String remoteServiceRelativePath)
ServletModule to be able to bind object through the supplied
remote service relative path of the targeted servlet.injector - The Guice Injector configured.remoteServiceClass - The remote service interface of the Guice object to retrieve.remoteServiceRelativePath - The remote service relative path of the Guice object to
retrieve.GwtGuiceTest.getInjector()Copyright © 2018. All rights reserved.