Skip to content

Commit 3ca09f3

Browse files
matchers: doc imports required (#1549)
1 parent 8b434e5 commit 3ca09f3

File tree

13 files changed

+40
-0
lines changed

13 files changed

+40
-0
lines changed

webtau-docs/znai/matchers/any-of.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ Groovy:
99
entry: "any of matcher example",
1010
bodyOnly: true
1111
}
12+
:include-markdown: import-ref.md
1213
1314
Java:
1415
:include-java: org/testingisdocumenting/webtau/MatchersTest.java {
1516
entry: "anyOfMatcherExample",
1617
bodyOnly: true
1718
}
19+
:include-markdown: import-ref.md
1820
```
1921

2022
# Mixing Values And Matchers

webtau-docs/znai/matchers/any-value.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ Groovy:
88
:include-file: org/testingisdocumenting/webtau/MatchersGroovyTest.groovy {
99
surroundedBy: "any-value-table-example"
1010
}
11+
:include-markdown: import-ref.md
1112
1213
Java:
1314
:include-file: org/testingisdocumenting/webtau/MatchersTest.java {
1415
surroundedBy: "any-value-table-example"
1516
}
17+
:include-markdown: import-ref.md
1618
```
1719

1820
:include-cli-output: doc-artifacts/any-value-table-output.txt {
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
:include-markdown: imports/single-dsl-import.md
2+
3+
# Matchers Specific Import
4+
5+
To specifically import `matchers` only use
6+
7+
```tabs
8+
Groovy:
9+
:include-file: org/testingisdocumenting/webtau/expectation/equality/handlers/StringMatchersGroovyExamplesTest.groovy {title: "matchers import", include: "Matchers.*"}
10+
:include-file: maven/core-dep.xml {title: "maven dependency"}
11+
12+
Java:
13+
14+
:include-file: org/testingisdocumenting/webtau/expectation/equality/handlers/StringMatchersJavaExamplesTest.java {title: "matchers import", include: "Matchers.*"}
15+
:include-file: maven/core-dep.xml {title: "maven dependency"}
16+
```
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Check [Import And Dependencies](matchers/import-and-dependencies) for prerequisites.

webtau-docs/znai/matchers/introduction.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@ Groovy:
1818
1919
Note: Groovy has a shortcut for `equal` matcher.
2020
21+
:include-markdown: import-ref.md
22+
2123
Java:
2224
:include-file: org/testingisdocumenting/webtau/MatchersTest.java {
2325
title: "should example",
2426
surroundedBy: "string-string-example",
2527
commentsType: "remove"
2628
}
29+
:include-markdown: import-ref.md
2730
```
2831

2932
:include-cli-output: doc-artifacts/string-string-comparison.txt {title: "should console output"}

webtau-docs/znai/matchers/java-beans-and-records.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ Groovy:
1010
surroundedBy: "bean-map-example",
1111
commentsType: "inline"
1212
}
13+
:include-markdown: import-ref.md
1314
1415
Java:
1516
:include-file: org/testingisdocumenting/webtau/MatchersTest.java {
1617
surroundedBy: "bean-map-example",
1718
commentsType: "inline"
1819
}
20+
:include-markdown: import-ref.md
1921
```
2022

2123
```columns

webtau-docs/znai/matchers/maps.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ Groovy:
77
:include-file: org/testingisdocumenting/webtau/expectation/equality/handlers/MapMatchersGroovyExamplesTest.groovy {
88
surroundedBy: "maps-equal-mismatch"
99
}
10+
:include-markdown: import-ref.md
11+
1012
Java:
1113
:include-file: org/testingisdocumenting/webtau/expectation/equality/handlers/MapMatchersJavaExamplesTest.java {
1214
surroundedBy: "maps-equal-mismatch"
1315
}
16+
:include-markdown: import-ref.md
1417
```
1518

1619
:include-cli-output: doc-artifacts/maps-equal-console-output.txt {

webtau-docs/znai/matchers/strings.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ Groovy:
77
:include-file: org/testingisdocumenting/webtau/expectation/equality/handlers/StringMatchersGroovyExamplesTest.groovy {
88
surroundedBy: "single-line-compare"
99
}
10+
:include-markdown: import-ref.md
1011
1112
Java:
1213
:include-file: org/testingisdocumenting/webtau/expectation/equality/handlers/StringMatchersJavaExamplesTest.java {
1314
surroundedBy: "single-line-compare"
1415
}
16+
:include-markdown: import-ref.md
1517
```
1618

1719
:include-cli-output: doc-artifacts/single-line-string-compare-output.txt {

webtau-docs/znai/matchers/tables.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ Groovy:
77
:include-file: org/testingisdocumenting/webtau/expectation/equality/handlers/TableDataMatchersGroovyExamplesTest.groovy {
88
surroundedBy: "table-equal-mismatch"
99
}
10+
:include-markdown: import-ref.md
11+
1012
Java:
1113
:include-file: org/testingisdocumenting/webtau/expectation/equality/handlers/TableDataMatchersJavaExamplesTest.java {
1214
surroundedBy: "table-equal-mismatch"
1315
}
16+
:include-markdown: import-ref.md
1417
```
1518

1619
:include-cli-output: doc-artifacts/table-equal-console-output.txt {

webtau-docs/znai/matchers/universal-compare.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ Groovy:
99
surroundedBy: ["string-string-example", "string-number-example"], surroundedBySeparator: "",
1010
commentsType: "inline"
1111
}
12+
:include-markdown: import-ref.md
1213
1314
Java:
1415
:include-file: org/testingisdocumenting/webtau/MatchersTest.java {
1516
surroundedBy: ["string-string-example", "string-number-example"], surroundedBySeparator: "",
1617
commentsType: "inline"
1718
}
19+
:include-markdown: import-ref.md
1820
```
1921

2022
# Reporting

0 commit comments

Comments
 (0)