我有一个简单的轮询程序,可以很好地工作,但是我不确定如何使用Mockito测试此SchedulingConfigurer实现。欢迎所有建议。
UIWindow *window = UIApplication.sharedApplication.keyWindow;
CGFloat bottomPadding = window.safeAreaInsets.bottom;
btnLogin = [[UIButton alloc]initWithFrame:CGRectMake(0,self.view.frame.size.height-30-bottomPadding, self.view.frame.size.width/4, 20)];
}}