public class CubaClientTestCase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AppBeans |
appBeans |
protected AppContext |
appContext |
protected TestBeanValidation |
beanValidation |
protected ClientConfig |
clientConfig |
protected Configuration |
configuration |
protected TestEntityStates |
entityStates |
protected TestExtendedEntities |
extendedEntities |
protected com.haulmont.chile.core.datatypes.FormatStringsRegistry |
formatStringsRegistry |
protected GlobalConfig |
globalConfig |
protected TestMessages |
messages |
protected TestMessageTools |
messageTools |
protected TestMetadataClient |
metadata |
protected org.springframework.core.type.classreading.MetadataReaderFactory |
metadataReaderFactory |
protected PersistenceManagerService |
persistenceManager |
protected org.springframework.core.io.support.ResourcePatternResolver |
resourcePatternResolver |
protected TestSecurity |
security |
protected TestUserSessionSource |
userSessionSource |
protected TestUuidSource |
uuidSource |
protected TestViewRepositoryClient |
viewRepository |
Constructor and Description |
---|
CubaClientTestCase() |
Modifier and Type | Method and Description |
---|---|
protected void |
addEntityPackage(java.lang.String packageName)
Add entities package to build metadata from.
|
protected java.util.List<java.lang.String> |
getClasses(org.springframework.core.io.Resource[] resources) |
protected void |
setupInfrastructure()
Set up
Metadata and other infrastructure objects before running test. |
protected void |
setViewConfig(java.lang.String viewConfigPath)
Set path to Views configuration file to build ViewRepository from it.
|
protected AppContext appContext
protected AppBeans appBeans
protected Configuration configuration
protected PersistenceManagerService persistenceManager
protected GlobalConfig globalConfig
protected ClientConfig clientConfig
protected TestMetadataClient metadata
protected TestViewRepositoryClient viewRepository
protected TestUserSessionSource userSessionSource
protected TestUuidSource uuidSource
protected TestSecurity security
protected TestExtendedEntities extendedEntities
protected com.haulmont.chile.core.datatypes.FormatStringsRegistry formatStringsRegistry
protected TestMessages messages
protected TestMessageTools messageTools
protected TestBeanValidation beanValidation
protected TestEntityStates entityStates
protected org.springframework.core.io.support.ResourcePatternResolver resourcePatternResolver
protected org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory
protected void addEntityPackage(java.lang.String packageName)
packageName
- package FQN, e.g. com.haulmont.cuba.core.entity
protected java.util.List<java.lang.String> getClasses(org.springframework.core.io.Resource[] resources)
protected void setViewConfig(java.lang.String viewConfigPath)
viewConfigPath
- configuration resource FQN, e.g. /com/haulmont/cuba/gui/data/impl/testmodel1/test-views.xml
protected void setupInfrastructure()
Metadata
and other infrastructure objects before running test. Should be invoked by concrete test classes
once in their @Before method.