Skip to content

Commit

Permalink
Merge pull request #10 from cashapp/fix-test
Browse files Browse the repository at this point in the history
Update test for new behavior
  • Loading branch information
squarejesse authored Oct 9, 2024
2 parents fa511b3 + 47cf066 commit 60335a0
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 60335a0

Please sign in to comment.