Package play.mvc

Examples of play.mvc.Content


        assertThat(a).isEqualTo(2);
    }

    @Test
    public void renderTemplate() {
        Content html = views.html.index.render("Your new application is ready.");
        assertThat(contentType(html)).isEqualTo("text/html");
        assertThat(contentAsString(html)).contains("Your new application is ready.");
    }
View Full Code Here


    List<Task> items = new ArrayList<Task>();
    Task dummyTask = new Task();
    dummyTask.id = 0L;
    items.add(dummyTask);
   
        Content html = views.html.index.render(items);
        assertThat(contentType(html)).isEqualTo("text/html");
        assertThat(contentAsString(html)).contains("Task List: 1");
    }
View Full Code Here

TOP

Related Classes of play.mvc.Content

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.