importorg.junit.Test;importplay.test.WithApplication;importplay.twirl.api.Content;importstaticorg.assertj.core.api.Assertions.assertThat;/** * A functional test starts a Play application for every test. * * https://www.playframework.com/documentation/latest/JavaFunctionalTest */publicclassFunctionalTestextendsWithApplication{@TestpublicvoidrenderTemplate(){// If you are calling out to Assets, then you must instantiate an application// because it makes use of assets metadata that is configured from// the application.Contenthtml=views.html.index.render("Your new application is ready.");assertThat("text/html").isEqualTo(html.contentType());assertThat(html.body()).contains("Your new application is ready.");}}