@RunWith(RobolectricTestRunner.class)
@Config(constants = BuildConfig.class, sdk = 21)
public class RouterTest {
@Before
public void setUp() throws URISyntaxException {
//输出日志
ShadowLog.stream = System.out;
}
然后就可以在@test
测试用例中直接使用System.out.println