From 5451627eb0cf8d95dafd23e96665e062ef023d75 Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Mon, 18 May 2020 17:14:23 +0200 Subject: Add test utils for ContentDivergent and fix the tests --- .../main/kotlin/matchers/content/ContentMatchersDsl.kt | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'test-tools/src/main/kotlin/matchers/content') diff --git a/test-tools/src/main/kotlin/matchers/content/ContentMatchersDsl.kt b/test-tools/src/main/kotlin/matchers/content/ContentMatchersDsl.kt index 41d73378..01abab28 100644 --- a/test-tools/src/main/kotlin/matchers/content/ContentMatchersDsl.kt +++ b/test-tools/src/main/kotlin/matchers/content/ContentMatchersDsl.kt @@ -83,4 +83,19 @@ fun ContentMatcherBuilder<*>.somewhere(block: ContentMatcherBuilder<*>.() -> Uni skipAllNotMatching() block() skipAllNotMatching() -} \ No newline at end of file +} + +fun ContentMatcherBuilder<*>.divergentGroup(block: ContentMatcherBuilder.() -> Unit) = + composite(block) + +fun ContentMatcherBuilder.divergentInstance(block: ContentMatcherBuilder.() -> Unit) = + composite(block) + +fun ContentMatcherBuilder.before(block: ContentMatcherBuilder.() -> Unit) = + composite(block) + +fun ContentMatcherBuilder.divergent(block: ContentMatcherBuilder.() -> Unit) = + composite(block) + +fun ContentMatcherBuilder.after(block: ContentMatcherBuilder.() -> Unit) = + composite(block) \ No newline at end of file -- cgit