Skip to content

Commit f360cb5

Browse files
committed
fixing links in the testing doc
Signed-off-by: Lewis Birks <22620804+lewisbirks@users.noreply.github.com>
1 parent d6b193c commit f360cb5

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

docs/asciidoc/testing.adoc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class TestApp {
6868

6969
Simple and easy {love}!
7070

71-
The javadoc:MockRouter[] returns the value produced by the route handler. It is possible to get
71+
The javadoc:test.MockRouter[artifact=jooby-test] returns the value produced by the route handler. It is possible to get
7272
access and check response metadata:
7373

7474
.App
@@ -128,7 +128,7 @@ class TestApp {
128128
}
129129
----
130130

131-
For more complex route context interaction or responses, you can pass in a javadoc:MockContext[]:
131+
For more complex route context interaction or responses, you can pass in a javadoc:test.MockContext[artifact=jooby-test]:
132132

133133
.App
134134
[source,java,role="primary"]
@@ -245,14 +245,14 @@ For MVC routes you might prefer to write a unit test using a mock library. No ne
245245

246246
==== Options
247247

248-
- javadoc:MockRouter[setFullExecution]: the javadoc:MockRouter[] class ONLY execute the route
249-
handler. For executing the entire pipeline use: javadoc:MockRouter[setFullExecution].
248+
- javadoc:test.MockRouter[setFullExecution, boolean, artifact=jooby-test]: the javadoc:test.MockRouter[artifact=jooby-test] class ONLY execute the route
249+
handler. For executing the entire pipeline use: javadoc:test.MockRouter[setFullExecution, boolean, artifact=jooby-test].
250250

251-
- javadoc:Jooby[setLateInit]: extension modules usually run at the time they are installed it.
252-
This might not be ideally for unit tests. To delay extension initialization use the javadoc:Jooby[setLateInit] mode.
251+
- javadoc:Jooby[setLateInit, boolean]: extension modules usually run at the time they are installed it.
252+
This might not be ideally for unit tests. To delay extension initialization use the javadoc:Jooby[setLateInit, boolean] mode.
253253

254-
Unit testing is simple and easy in Jooby. The javadoc:MockRouter[] let you execute the route function,
255-
while the javadoc:MockContext[] allows you to create an light-weight and mutable context where
254+
Unit testing is simple and easy in Jooby. The javadoc:test.MockRouter[artifact=jooby-test] let you execute the route function,
255+
while the javadoc:test.MockContext[artifact=jooby-test] allows you to create an light-weight and mutable context where
256256
you can set HTTP parameters, body, headers, etc.
257257

258258
=== Integration Testing
@@ -343,9 +343,9 @@ The example uses https://square.github.io/okhttp/[OkHttp] client, but you are fr
343343

344344
Simple and easy {love}!
345345

346-
The javadoc:JoobyTest[] takes care of start and stop the application.
346+
The javadoc:test.JoobyTest[artifact=jooby-test] takes care of start and stop the application.
347347

348-
The default port is: `8911`. Application port can be configured directly using the javadoc:JoobyTest[port] method:
348+
The default port is: `8911`. Application port can be configured directly using the javadoc:test.JoobyTest[port, artifact=jooby-test] method:
349349

350350
`@JoobyTest(value = App.class, port = 9999)`
351351

@@ -391,7 +391,7 @@ Here is the list of available injectable values:
391391

392392
These values can be injected via parameter or instance fields.
393393

394-
The javadoc:JoobyTest[] annotation starts the application using the `test` environment name. You can
394+
The javadoc:test.JoobyTest[artifact=jooby-test] annotation starts the application using the `test` environment name. You can
395395
creates a `conf/application.test.conf` file to override any other values for testing purpose.
396396

397397
==== Arguments

0 commit comments

Comments
 (0)