forked from eugenp/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Task/bael 10882 fixes2 (eugenp#6278)
* BAEL-10882 Fixed failing unit tests * BAEL-10882 Fixed failing unit tests
- Loading branch information
Showing
3 changed files
with
22 additions
and
14 deletions.
There are no files selected for viewing
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,21 @@ | ||
package com.baeldung.jooby; | ||
|
||
import static io.restassured.RestAssured.get; | ||
import static org.hamcrest.Matchers.equalTo; | ||
|
||
import org.jooby.test.JoobyRule; | ||
import org.junit.ClassRule; | ||
import org.junit.Test; | ||
|
||
public class AppLiveTest { | ||
|
||
@ClassRule | ||
public static JoobyRule app = new JoobyRule(new App()); | ||
|
||
@Test | ||
public void given_defaultUrl_expect_fixedString() { | ||
get("/").then().assertThat().body(equalTo("Hello World!")).statusCode(200) | ||
.contentType("text/html;charset=UTF-8"); | ||
} | ||
|
||
} |
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
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