public static class TestFile.BinaryTestFile extends LintDetectorTest.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 |
---|
BinaryTestFile(java.lang.String to,
TestFile.BytecodeProducer producer) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
createFile(java.io.File targetDir) |
byte[] |
getBinaryContents() |
java.lang.String |
getContents() |
LintDetectorTest.TestFile |
withSource(java.lang.String source) |
copy, from, to, withBytes, within
getTargetPath
public BinaryTestFile(@NonNull java.lang.String to, @NonNull TestFile.BytecodeProducer producer)
public LintDetectorTest.TestFile withSource(@NonNull java.lang.String source)
withSource
in class LintDetectorTest.TestFile
@NonNull public java.lang.String getContents()
getContents
in class TestFile
public byte[] getBinaryContents()
@NonNull public java.io.File createFile(@NonNull java.io.File targetDir) throws java.io.IOException
createFile
in class TestFile
java.io.IOException