public static class LintDetectorTest.TestFile extends TestFile
This class is just a temporary shim to keep the API compatible; new code should reference com.android.tools.lint.checks.infrastructure.TestFile.
TestFile.BinaryTestFile, TestFile.BytecodeProducer, TestFile.ByteProducer, TestFile.GradleTestFile, TestFile.ImageTestFile, TestFile.JarTestFile, TestFile.JavaTestFile, TestFile.ManifestTestFile, TestFile.PropertyTestFile
bytes, contents, sourceRelativePath, targetRelativePath, targetRootFolder
Constructor and Description |
---|
TestFile() |
Modifier and Type | Method and Description |
---|---|
LintDetectorTest.TestFile |
copy(java.lang.String relativePath,
TestResourceProvider provider) |
LintDetectorTest.TestFile |
from(java.lang.String from,
TestResourceProvider provider) |
LintDetectorTest.TestFile |
to(java.lang.String to) |
LintDetectorTest.TestFile |
withBytes(byte[] bytes) |
LintDetectorTest.TestFile |
within(java.lang.String root) |
LintDetectorTest.TestFile |
withSource(java.lang.String source) |
createFile, getContents, getTargetPath
public LintDetectorTest.TestFile withSource(@NonNull java.lang.String source)
withSource
in class TestFile
public LintDetectorTest.TestFile from(@NonNull java.lang.String from, @NonNull TestResourceProvider provider)
public LintDetectorTest.TestFile to(@NonNull java.lang.String to)
public LintDetectorTest.TestFile copy(@NonNull java.lang.String relativePath, @NonNull TestResourceProvider provider)
public LintDetectorTest.TestFile withBytes(@NonNull byte[] bytes)
public LintDetectorTest.TestFile within(@Nullable java.lang.String root)