The Test class provides methods for creating test contexts and invoking your CanvasLifecycleHandler with mock data. The following are methods for Test. All are static methods. mockRenderContext(applicationContextTestValues, environmentContextTestValues) Creates and returns a test Canvas.RenderContext based on the provided application and environment context parameters. testCanvasLifecycle(lifecycleHandler, mockRenderContext) Calls the Canvas test framework to invoke a CanvasLifecycleHandler with the provided RenderContext.
The Test class provides methods for creating test contexts and invoking your CanvasLifecycleHandler with mock data. The following are methods for Test. All are static methods. mockRenderContext(applicationContextTestValues, environmentContextTestValues) Creates and returns a test Canvas.RenderContext based on the provided application and environment context parameters. testCanvasLifecycle(lifecycleHandler, mockRenderContext) Calls the Canvas test framework to invoke a CanvasLifecycleHandler with the provided RenderContext.