### Question:
WXSlider extends WXVContainer<FrameLayout> { @Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.VALUE: String value = WXUtils.getString(param, null); if (value != null) { setValue(value); } return true; case Constants.Name.AUTO_PLAY: String aotu_play = WXUtils.getString(param, null); if (aotu_play != null) { setAutoPlay(aotu_play); } return true; case Constants.Name.SHOW_INDICATORS: String indicators = WXUtils.getString(param, null); if (indicators != null) { setShowIndicators(indicators); } return true; case Constants.Name.INTERVAL: Integer interval = WXUtils.getInteger(param, null); if (interval != null) { setInterval(interval); } return true; case Constants.Name.INDEX: Integer index = WXUtils.getInteger(param, null); if (index != null) { setIndex(index); } return true; case Constants.Name.OFFSET_X_ACCURACY: Float accuracy = WXUtils.getFloat(param, 0.1f); if (accuracy != 0) { setOffsetXAccuracy(accuracy); } return true; case Constants.Name.SCROLLABLE: boolean scrollable = WXUtils.getBoolean(param, true); setScrollable(scrollable); return true; case Constants.Name.KEEP_INDEX: this.keepIndex = WXUtils.getBoolean(param, false); return true; } return super.setProperty(key, param); } @Deprecated  WXSlider(WXSDKInstance instance, WXVContainer parent, String instanceId, boolean isLazy, BasicComponentData basicComponentData);  WXSlider(WXSDKInstance instance, WXVContainer parent, BasicComponentData basicComponentData); @Override LayoutParams getChildLayoutParams(WXComponent child,View childView, int width, int height, int left, int right, int top, int bottom); @Override void addEvent(String type); @Override boolean containsGesture(WXGestureType WXGestureType); @Override ViewGroup getRealView(); @Override void addSubView(View view, int index); @Override void remove(WXComponent child, boolean destroy); @Override void destroy(); @Override void onActivityResume(); @Override void onActivityStop(); void addIndicator(WXIndicator indicator); @Deprecated @WXComponentProp(name = Constants.Name.VALUE) void setValue(String value); @WXComponentProp(name = Constants.Name.AUTO_PLAY) void setAutoPlay(String autoPlay); @WXComponentProp(name = Constants.Name.SHOW_INDICATORS) void setShowIndicators(String show); @WXComponentProp(name = Constants.Name.INTERVAL) void setInterval(int intervalMS); @WXComponentProp(name = Constants.Name.INDEX) void setIndex(int index); @WXComponentProp(name = Constants.Name.SCROLLABLE) void setScrollable(boolean scrollable); @WXComponentProp(name = Constants.Name.OFFSET_X_ACCURACY) void setOffsetXAccuracy(float accuracy); static final String INDEX; static final String INFINITE; }### Answer:
@Test public void testSetProperties() throws Exception { ComponentTest.setProperty(component,PROPS,VALUES); }
@Test public void testIndicator() throws Exception { WXIndicator indicator = createIndicator(component); ComponentTest.create(indicator); component.addChild(indicator); ComponentTest.setProperty(indicator,IPROPS,IVALUES); }