12.3.1 MockGriffonApplication - Reference Documentation
Authors: Andres Almiray
Version: 1.2.0
12.3.1 MockGriffonApplication
MockGriffonApplication
is a fully functional GriffonApplication with the advantage that it lets you override the location of all configuration classes: Application
, Builder
, Config
and Events
.
If you choose to change the default UIThreadHandler
then you must do it so right after the application has been instantiated and no other operation that requires multi-thread access has been called, otherwise you won't be able to change it's value.
By default, a MockGriffonApplication defines the following:
MockApplication
- setups a 'mock' MVC group with 3 elements:MockModel
,MockView
andMockController
MockBuilderConfig
- defines a single builder entry:griffon.test.mock.MockBuilder
MockConfig
- defines a single config entry:mocked = true
MockEvents
- defines an event handler for 'Mock'
MockBuilder
- a single node namedmock
that returns a map with any properties that were defined on the node.MockModel
- a lone observable propertyvalue
of type String.MockView
- simple script that calls themock
node defined by the builder.MockController
- a controller with no actions.