Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit be9c504

Browse files
committed
added chapter on Kotlin to the documentation
1 parent 318f852 commit be9c504

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
== Kotlin
2+
3+
Since version 2.3 WebTester supports the use of Kotlin. Up until then the
4+
declarative nature of WebTester would not work with the way Kotlin is implementing
5+
default methods on interfaces.
6+
7+
In order to work with Kotlin, you must add the `webtester-kotlin` module to your
8+
test dependencies. Within this module you'll find two classes:
9+
10+
* `info.novatec.testit.webtester.kotlin.pages.Page`
11+
* `info.novatec.testit.webtester.kotlin.pagefragments.PageFragment`
12+
13+
Both of these are alias classes for their corresponding Java counterparts.
14+
In addition to providing a more Kotlin-esk API, their use will also act as
15+
a flag for WebTester to consider Kotlin when it's generating code.
16+
17+
Other than using these special classes when creating pages and page fragments,
18+
everything else should work the same as with Java.

webtester-documentation/src/main/asciidoc/documentation.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ include::chapters/annotations.asciidoc[]
1919
include::chapters/utilities.asciidoc[]
2020

2121
include::chapters/support-modules.asciidoc[]
22+
23+
include::chapters/kotlin.asciidoc[]

0 commit comments

Comments
 (0)