/**
* The name 'test preconditions' is a convention to signal that if this
* test doesn't pass, the test case was not set up properly and it might
* explain any and all failures in other tests. This is not guaranteed
* to run before other tests, as junit uses reflection to find the tests.
*/
@MediumTest
public void testPreconditions() {
assertNotNull(mLib1TextView1);
// use some of Guava's class as they should be accessible through the
// classpath from the library
Iterable<String> segments = Splitter.on("-").split(mLib1TextView1.getText());
assertEquals("SUCCESS", segments.iterator().next());
}
MainActivityTest.java 文件源码
java
阅读 43
收藏 0
点赞 0
评论 0
项目:intellij-ce-playground
作者:
评论列表
文章目录