ClassDepsParserTest.java 文件源码

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

项目:jadecy 作者:
public void test_computeDependencies_packageInfo() {
    for (boolean apiOnly : FALSE_TRUE) {

        final SortedSet<String> expected = new TreeSet<String>();
        //
        if (apiOnly) {
        } else {
            addSlashedName(expected, TestAnno1.class);
            addSlashedName(expected, TestAnno2.class);
            addSlashedName(expected, Object.class);
            // String doesn't make it into the class file,
            // only types of other arguments.
            addSlashedName(expected, Integer.class);
            addSlashedName(expected, RoundingMode.class);
            addSlashedName(expected, Documented.class);
        }

        computeDepsAndCheck(TestAnno1.class.getPackage().getName() + ".package-info", apiOnly, expected);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号