Android单元测试研究与实践(16)
voidtestDialog(){ Dialogdialog=ShadowDialog.getLatestDialog(); assertNotNull(dialog); } public voidtestToast(StringtoastContent){ ShadowHandler.idleMainLooper();
void testDialog(){
Dialog dialog = ShadowDialog.getLatestDialog();
assertNotNull(dialog);
}
public void testToast(String toastContent){
ShadowHandler.idleMainLooper();
原文转自:http://tech.meituan.com/Android_unit_test.html