大家好,我正在尝试使用Google'sgithubbrowsersampleasabase学习Kotlin的单元测试.我的代码确实非常相似,但我无法让他们的一项更基本的测试工作(而且我不太理解)。我的主要问题是sendResultToUI()测试究竟在做什么,@TestpublicvoidsendResultToUI(){MutableLiveData>foo=newMutableLiveData();when(userRepository.loadUser("foo")).thenReturn(foo);Observer>observer=mock(Observer.class);u