-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added chapter on Kotlin to the documentation
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
webtester-documentation/src/main/asciidoc/chapters/kotlin.asciidoc
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 @@ | ||
== Kotlin | ||
|
||
Since version 2.3 WebTester supports the use of Kotlin. Up until then the | ||
declarative nature of WebTester would not work with the way Kotlin is implementing | ||
default methods on interfaces. | ||
|
||
In order to work with Kotlin, you must add the `webtester-kotlin` module to your | ||
test dependencies. Within this module you'll find two classes: | ||
|
||
* `info.novatec.testit.webtester.kotlin.pages.Page` | ||
* `info.novatec.testit.webtester.kotlin.pagefragments.PageFragment` | ||
Both of these are alias classes for their corresponding Java counterparts. | ||
In addition to providing a more Kotlin-esk API, their use will also act as | ||
a flag for WebTester to consider Kotlin when it's generating code. | ||
|
||
Other than using these special classes when creating pages and page fragments, | ||
everything else should work the same as with Java. |
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