我正在尝试将 FEST 与 android 应用程序测试一起使用
我想检查活动中的某些视图是否已正确创建和初始化
@Test
public void testSplashScreenActivity() throws Exception{
SplashScreenActivity activity = Robolectric.buildActivity(SplashScreenActivity.class).create().start().resume().get();
//here i want to write fest assertions
}
但是,当我assertThat(activity.welcomeText)
.....在这条线之后什么都不允许?
我写了 import static org.fest.assertions.api.ANDROID.assertThat;在我的导入中,但 api 似乎不可用
怎么做才能让我的测试项目给我我需要的 api?