use of com.github.mjeanroy.junit.servers.client.HttpResponse in project springmvc-mustache by mjeanroy.
the class IndexControllerTest method it_should_render_handlebars_template_using_model_and_mustache_view.
@Test
void it_should_render_handlebars_template_using_model_and_mustache_view(HttpClient client) {
HttpResponse response = client.prepareGet("/jane").execute();
assertThat(response.status()).isEqualTo(200);
assertThat(response.body()).contains("Hello, my name is Jane Doe");
}
use of com.github.mjeanroy.junit.servers.client.HttpResponse in project springmvc-mustache by mjeanroy.
the class IndexControllerTest method it_should_render_template.
@Test
void it_should_render_template(HttpClient client) {
HttpResponse response = client.prepareGet("/").execute();
assertThat(response.status()).isEqualTo(200);
assertThat(response.body()).contains("Hello, my name is John Doe");
}
use of com.github.mjeanroy.junit.servers.client.HttpResponse in project springmvc-mustache by mjeanroy.
the class IndexControllerTest method it_should_render_mustache_template_using_model_and_mustache_view.
@Test
void it_should_render_mustache_template_using_model_and_mustache_view(HttpClient client) {
HttpResponse response = client.prepareGet("/jane").execute();
assertThat(response.status()).isEqualTo(200);
assertThat(response.body()).contains("Hello, my name is Jane Doe");
}
use of com.github.mjeanroy.junit.servers.client.HttpResponse in project springmvc-mustache by mjeanroy.
the class IndexControllerTest method it_should_render_handlebars_template.
@Test
void it_should_render_handlebars_template(HttpClient client) {
HttpResponse response = client.prepareGet("/").execute();
assertThat(response.status()).isEqualTo(200);
assertThat(response.body()).contains("Hello, my name is John Doe");
}
use of com.github.mjeanroy.junit.servers.client.HttpResponse in project springmvc-mustache by mjeanroy.
the class IndexControllerTest method it_should_render_template.
@Test
void it_should_render_template(HttpClient client) {
HttpResponse response = client.prepareGet("/").execute();
assertThat(response.status()).isEqualTo(200);
assertThat(response.body()).contains("Hello, my name is John Doe");
}
Aggregations