### Question:
WXWeb extends WXComponent { @Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.SHOW_LOADING: Boolean result = WXUtils.getBoolean(param,null); if (result != null) setShowLoading(result); return true; case Constants.Name.SRC: String src = WXUtils.getString(param,null); if (src != null) setUrl(src); return true; case Constants.Name.SOURCE: String source = WXUtils.getString(param,null); if (source != null) setSource(source); return true; } return super.setProperty(key,param); } @Deprecated  WXWeb(WXSDKInstance instance, WXVContainer parent, String instanceId, boolean isLazy, BasicComponentData basicComponentData);  WXWeb(WXSDKInstance instance, WXVContainer parent, boolean isLazy, BasicComponentData basicComponentData); @Override void destroy(); @WXComponentProp(name = Constants.Name.SHOW_LOADING) void setShowLoading(boolean showLoading); @WXComponentProp(name = Constants.Name.SRC) void setUrl(String url); @WXComponentProp(name = Constants.Name.SOURCE) void setSource(String source); void setAction(String action, Object data); void loadUrl(String url); void loadDataWithBaseURL(String source); @JSMethod void reload(); @JSMethod void goForward(); @JSMethod void goBack(); @JSMethod void postMessage(Object msg); static final String GO_BACK; static final String GO_FORWARD; static final String RELOAD; static final String POST_MESSAGE; }### Answer:
@Test public void testSetProperty() throws Exception { component.setProperty(Constants.Name.SHOW_LOADING,true); component.setProperty(Constants.Name.SRC,"http: component.setProperty(Constants.Name.SOURCE, "<p><span>hello weex</span></p>"); }