### Question:
WXText extends WXComponent<WXTextView> implements FlatComponent<TextWidget> { @Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.LINES: case Constants.Name.FONT_SIZE: case Constants.Name.FONT_WEIGHT: case Constants.Name.FONT_STYLE: case Constants.Name.COLOR: case Constants.Name.TEXT_DECORATION: case Constants.Name.TEXT_ALIGN: case Constants.Name.TEXT_OVERFLOW: case Constants.Name.LINE_HEIGHT: case Constants.Name.VALUE: return true; case Constants.Name.FONT_FAMILY: return true; case Constants.Name.ENABLE_COPY: boolean enabled = WXUtils.getBoolean(param, false); if (getHostView() != null) { getHostView().enableCopy(enabled); } return true; default: return super.setProperty(key, param); } } @Deprecated  WXText(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, String instanceId, boolean isLazy);  WXText(WXSDKInstance instance, WXDomObject node,
                WXVContainer parent); @Override boolean promoteToView(boolean checkAncestor); @Override @NonNull TextWidget getOrCreateFlatWidget(); @Override boolean isVirtualComponent(); @Override void updateExtra(Object extra); @Override void refreshData(WXComponent component); @Override void destroy(); static final int sDEFAULT_SIZE; }### Answer:
@Test public void testSetProperties() throws Exception { mWXText.setProperty(Constants.Name.LINES,null); mWXText.setProperty(Constants.Name.FONT_SIZE,null); mWXText.setProperty(Constants.Name.FONT_WEIGHT,null); mWXText.setProperty(Constants.Name.FONT_STYLE,null); mWXText.setProperty(Constants.Name.COLOR,null); mWXText.setProperty(Constants.Name.TEXT_DECORATION,null); mWXText.setProperty(Constants.Name.FONT_FAMILY,null); mWXText.setProperty(Constants.Name.TEXT_ALIGN,null); mWXText.setProperty(Constants.Name.TEXT_OVERFLOW,null); mWXText.setProperty(Constants.Name.LINE_HEIGHT,null); }