chore: Use correct resource names for tests

This commit is contained in:
oSumAtrIX
2023-09-06 14:27:51 +02:00
parent 909d89fa8d
commit 49930f6565

View File

@@ -84,7 +84,7 @@ class TestPatchAnnotationProcessor {
// endregion
private companion object Utils {
const val SAMPLE_PACKAGE = "app.revanced.patcher.patch.annotations.processor.samples"
const val SAMPLE_PACKAGE = "app.revanced.patcher.patch.annotation.processor.samples"
/**
* Get a source file from the given sample and class name.
@@ -94,7 +94,7 @@ class TestPatchAnnotationProcessor {
* @return The source file.
*/
fun getSourceFile(sample: String, className: String): SourceFile {
val resourceName = "app/revanced/patcher/patch/annotations/processor/samples/$sample/$className.kt"
val resourceName = "app/revanced/patcher/patch/annotation/processor/samples/$sample/$className.kt"
return SourceFile.kotlin(
"$className.kt",
TestPatchAnnotationProcessor::class.java.classLoader.getResourceAsStream(resourceName)