-
-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move PactBrokerLoaderSpec to provider test source
- Loading branch information
1 parent
babb880
commit 78a6dc8
Showing
3 changed files
with
45 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
.../test/kotlin/au/com/dius/pact/provider/junitsupport/loader/PactBrokerLoaderTestSupport.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package au.com.dius.pact.provider.junitsupport.loader | ||
|
||
class KotlinClassWithSelectorMethod { | ||
@PactBrokerConsumerVersionSelectors | ||
fun consumerVersionSelectors() = SelectorBuilder().environment("KotlinSelectorMethod") | ||
} | ||
|
||
abstract class KotlinAbstractClassWithSelectorMethod { | ||
@PactBrokerConsumerVersionSelectors | ||
fun consumerVersionSelectors() = SelectorBuilder().environment("KotlinSelectorMethod") | ||
} | ||
|
||
class KotlinClassWithStaticSelectorMethod { | ||
companion object { | ||
@PactBrokerConsumerVersionSelectors | ||
fun consumerVersionSelectors() = SelectorBuilder().environment("KotlinStaticSelectorMethod") | ||
} | ||
} |