From 47cf0663290184f39d1becbdb62cc8766b3f3dae Mon Sep 17 00:00:00 2001 From: Jake Wharton Date: Wed, 9 Oct 2024 13:14:42 -0700 Subject: [PATCH] Update test for new beahvior --- .../kotlin/app/cash/burst/kotlin/BurstKotlinPluginTest.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/burst-kotlin-plugin-tests/src/test/kotlin/app/cash/burst/kotlin/BurstKotlinPluginTest.kt b/burst-kotlin-plugin-tests/src/test/kotlin/app/cash/burst/kotlin/BurstKotlinPluginTest.kt index 2b86836..30c599f 100644 --- a/burst-kotlin-plugin-tests/src/test/kotlin/app/cash/burst/kotlin/BurstKotlinPluginTest.kt +++ b/burst-kotlin-plugin-tests/src/test/kotlin/app/cash/burst/kotlin/BurstKotlinPluginTest.kt @@ -62,10 +62,9 @@ class BurstKotlinPluginTest { val adapterInstance = adapterClass.constructors.single().newInstance() val log = adapterClass.getMethod("getLog").invoke(adapterInstance) as MutableList<*> - // Burst adds @Ignore to the original test. + // Burst drops @Test from the original test. val originalTest = adapterClass.methods.single { it.name == "test" && it.parameterCount == 2 } - assertThat(originalTest.isAnnotationPresent(Test::class.java)).isTrue() - assertThat(originalTest.isAnnotationPresent(Ignore::class.java)).isTrue() + assertThat(originalTest.isAnnotationPresent(Test::class.java)).isFalse() // Burst adds a variant for each combination of parameters. val sampleVariant = adapterClass.getMethod("test_Decaf_None")