Step 5: Modifying ContextFactory


For step 5, you must extend AdminContext using a new AdminContext_Ext class.

Modify ContextFactory so that it defines a method that returns the extension 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.customer.steps.context.api.AdminContext_Ext}.
 * This method should be used on contexts that are LOB agnostic.
 */
function getAdminContext_Ext() : AdminContext_Ext