[JAVA-13966] Upgraded h2 database to 2.1.214 + clean up (#12711)
* [JAVA-13966] Upgraded h2 database to 2.1.214 * [JAVA-13966] fixed tests for libraries-apache-commons * [JAVA-13966] fixed tests * [JAVA-13966] fixed tests * [JAVA-13966] fixed tests JAVA-JPA MODULE * [JAVA-13966] Made ninja submodule part of web-modules(parent) * [JAVA-13966] Fixed naming convention for pmd * [JAVA-13966] Moved tests of ninja-module to ManualTest category * [JAVA-13966] Fix tests Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package controllers;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.containsString;
|
||||
import static org.junit.Assert.assertThat;
|
||||
import org.doctester.testbrowser.Request;
|
||||
import org.doctester.testbrowser.Response;
|
||||
import org.junit.Test;
|
||||
import ninja.NinjaDocTester;
|
||||
|
||||
public class ApiControllerDocTesterManualTest extends NinjaDocTester {
|
||||
|
||||
String URL_INDEX = "/";
|
||||
String URL_HELLO = "/hello";
|
||||
|
||||
@Test
|
||||
public void testGetIndex() {
|
||||
Response response = makeRequest(Request.GET().url(testServerUrl().path(URL_INDEX)));
|
||||
assertThat(response.payload, containsString("Hello, welcome to Ninja Framework!"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetHello() {
|
||||
Response response = makeRequest(Request.GET().url(testServerUrl().path(URL_HELLO)));
|
||||
assertThat(response.payload, containsString("Bonjour, bienvenue dans Ninja Framework!"));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user