public abstract class GwtSpringCsvTest extends GwtCsvTest implements org.springframework.context.ApplicationContextAware
Base class for tests that needs to be run with spring-test module.
Subclasses must be annotated with the spring ContextConfiguration
annotation to configure the spring files location to use to build the test context.
You can autowire any spring bean in subclasses. For RemoteService beans, see the
findRpcServiceInSpringContext(ApplicationContext, Class, String) method
which you might want to override to get deferred binding working as you need in test mode.
csvRunner| Constructor and Description |
|---|
GwtSpringCsvTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeGwtSpringCsvTest()
Spring test initialization method.
|
protected Object |
findRpcServiceInSpringContext(org.springframework.context.ApplicationContext applicationContext,
Class<?> remoteServiceClass,
String remoteServiceRelativePath)
Retrieve a GWT RPC service from a spring context.
|
protected org.springframework.context.ApplicationContext |
getApplicationContext()
Get the Spring context which as been injected in the test class.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
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 beforeGwtSpringCsvTest()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionprotected Object findRpcServiceInSpringContext(org.springframework.context.ApplicationContext applicationContext, Class<?> remoteServiceClass, String remoteServiceRelativePath)
null.
If one an only one assignable bean can be found, it would be returned. If many assignable
beans are found, this implementation would check if one of it has a matching
RemoteServiceRelativePath annotation on its class. If so, it is returned. Otherwise,
null is returned.applicationContext - The Spring context.remoteServiceClass - The remote service interface of the Spring bean to retrieve.remoteServiceRelativePath - The remote service relative path of the Spring bean to
retrieve.protected org.springframework.context.ApplicationContext getApplicationContext()
ApplicationContextAwareCopyright © 2018. All rights reserved.