Skip to content

Commit

Permalink
added chapter on Kotlin to the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
slu-it committed Jun 20, 2017
1 parent 318f852 commit be9c504
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions webtester-documentation/src/main/asciidoc/chapters/kotlin.asciidoc
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.
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ include::chapters/annotations.asciidoc[]
include::chapters/utilities.asciidoc[]

include::chapters/support-modules.asciidoc[]

include::chapters/kotlin.asciidoc[]

0 comments on commit be9c504

Please sign in to comment.