From 49930f65652cb7026782a6c2708cb2ebe13a7de1 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 6 Sep 2023 14:27:51 +0200 Subject: [PATCH] chore: Use correct resource names for tests --- .../annotation/processor/TestPatchAnnotationProcessor.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/revanced-patch-annotation-processor/src/test/kotlin/app/revanced/patcher/patch/annotation/processor/TestPatchAnnotationProcessor.kt b/revanced-patch-annotation-processor/src/test/kotlin/app/revanced/patcher/patch/annotation/processor/TestPatchAnnotationProcessor.kt index 9163ec5..4321d64 100644 --- a/revanced-patch-annotation-processor/src/test/kotlin/app/revanced/patcher/patch/annotation/processor/TestPatchAnnotationProcessor.kt +++ b/revanced-patch-annotation-processor/src/test/kotlin/app/revanced/patcher/patch/annotation/processor/TestPatchAnnotationProcessor.kt @@ -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)