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,MockViewandMockControllerMockBuilderConfig- defines a single builder entry:griffon.test.mock.MockBuilderMockConfig- defines a single config entry:mocked = trueMockEvents- defines an event handler for 'Mock'
MockBuilder- a single node namedmockthat returns a map with any properties that were defined on the node.MockModel- a lone observable propertyvalueof type String.MockView- simple script that calls themocknode defined by the builder.MockController- a controller with no actions.