本文整理汇总了Java中com.android.tools.lint.checks.infrastructure.TestFiles类的典型用法代码示例。如果您正苦于以下问题:Java TestFiles类的具体用法?Java TestFiles怎么用?Java TestFiles使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TestFiles类属于com.android.tools.lint.checks.infrastructure包,在下文中一共展示了TestFiles类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testBasic0
import com.android.tools.lint.checks.infrastructure.TestFiles; //导入依赖的package包/类
public void testBasic0() throws Exception {
String string = lintProject(
java(getTestSource()),
// TestFiles.copy("FlowItem.java", "src/test/dm/lint/test/FlowItem.java.java", this),
TestFiles.copy("Java-base-1.1.0.jar", "libs/Java-base.jar", this),
TestFiles.copy("data-mediator-1.4.4.jar", "libs/data-mediator.jar", this),
TestFiles.copy("data-mediator-annotations-1.2.2.jar", "libs/data-mediator-annotations.jar", this)
);
System.out.println(string);
}
示例2: testBasic1
import com.android.tools.lint.checks.infrastructure.TestFiles; //导入依赖的package包/类
public void testBasic1() throws Exception {
String string = lintProject(
java(getTestSource()),
// TestFiles.copy("FlowItem.java", "src/test/dm/lint/test/FlowItem.java.java", this),
TestFiles.copy("Java-base-1.1.0.jar", "libs/Java-base.jar", this),
TestFiles.copy("data-mediator-1.4.4.jar", "libs/data-mediator.jar", this),
TestFiles.copy("data-mediator-annotations-1.2.2.jar", "libs/data-mediator-annotations.jar", this)
);
System.out.println(string);
}
示例3: testBasic2
import com.android.tools.lint.checks.infrastructure.TestFiles; //导入依赖的package包/类
public void testBasic2() throws Exception {
String string = lintProject(
java(getTestSource2()),
TestFiles.copy("Java-base-1.1.0.jar", "libs/Java-base.jar", this),
TestFiles.copy("data-mediator-1.4.4.jar", "libs/data-mediator.jar", this),
TestFiles.copy("data-mediator-annotations-1.2.2.jar", "libs/data-mediator-annotations.jar", this)
);
System.out.println(string);
}