Step 5: Modifying ContextFactory


For step 5, you must add a getCalendarContext_Ext method to ContextFactory

Modify ContextFactory so that it defines a method that returns the new context API.

The following text is an example of code that can be added to ContextFactory.gs.

/**
 * Returns the api implementation object casted to {@link gw.cucumber.cucumber.customer.steps.context.api.CalendarContext_Ext}.
 * This method should be used on contexts that are LOB agnostic.
 */
function getCalendarContext_Ext() : CalendarContext_Ext