BasicPodioFilterTest.java 文件源码

java
阅读 22 收藏 0 点赞 0 评论 0

项目:podio-android 作者:
@Suppress()
public void testAddPathSegments() {
    Uri reference = Uri.parse("scheme://authority/path1/path2");
    Filter filter = new EmptyProvider.Path();

    try {
        filter.addPathSegment(null);
        fail("should have thrown IllegalArgumentException");
    } catch (IllegalArgumentException e) {
    }

    filter.addPathSegment("path1");
    filter.addPathSegment("path2");

    Uri target = filter.buildUri("scheme", "authority");
    assertNotNull(target);
    assertEquals(reference, target);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号