Skip to content

Commit

Permalink
Update test for new beahvior
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton committed Oct 9, 2024
1 parent fa511b3 commit 47cf066
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 47cf066

Please sign in to comment.