Jimu for Test

The jimu-for-test package contains classes, types, and functions that can be used for unit testing.

The widgetRender and wrapWidget functions can be used to assist with unit testing widgets. The getInitState and getDefaultAppConfig functions return an empty state and config to allow easier testing.

Explore the rest of the API to see other helpful unit testing methods, and see the Unit Testing guide for more help and sample code.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.