@Test public void testSetInterval() throws Exception { module.setInterval(0,1); Mockito.verify(bridge,never()).sendMessageDelayed(any(Message.class),anyLong()); reset(bridge); module.setInterval(1,-1); Mockito.verify(bridge,times(1)).sendMessageDelayed(any(Message.class),eq((long)0)); reset(bridge); module.setInterval(1,2); Mockito.verify(bridge,times(1)).sendMessageDelayed(any(Message.class),eq((long)2)); }
@JSMethod(uiThread = false) public void setInterval(int funcId, int interval) { setInterval(funcId, interval, Integer.parseInt(mWXSDKInstance.getInstanceId())); }
WXTimerModule extends WXModule { @JSMethod(uiThread = false) public void setInterval(int funcId, int interval) { setInterval(funcId, interval, Integer.parseInt(mWXSDKInstance.getInstanceId())); } }
WXTimerModule extends WXModule { @JSMethod(uiThread = false) public void setInterval(int funcId, int interval) { setInterval(funcId, interval, Integer.parseInt(mWXSDKInstance.getInstanceId())); }  }
WXTimerModule extends WXModule { @JSMethod(uiThread = false) public void setInterval(int funcId, int interval) { setInterval(funcId, interval, Integer.parseInt(mWXSDKInstance.getInstanceId())); }  @JSMethod(uiThread = false) void setTimeout(int funcId, int delay); @JSMethod(uiThread = false) void setInterval(int funcId, int interval); @JSMethod(uiThread = false) void clearTimeout(int funcId); @JSMethod(uiThread = false) void clearInterval(int funcId); static void setInterval(int funcId, int interval, int instanceId); }
WXTimerModule extends WXModule { @JSMethod(uiThread = false) public void setInterval(int funcId, int interval) { setInterval(funcId, interval, Integer.parseInt(mWXSDKInstance.getInstanceId())); }  @JSMethod(uiThread = false) void setTimeout(int funcId, int delay); @JSMethod(uiThread = false) void setInterval(int funcId, int interval); @JSMethod(uiThread = false) void clearTimeout(int funcId); @JSMethod(uiThread = false) void clearInterval(int funcId); static void setInterval(int funcId, int interval, int instanceId);  }