3 import static org.testng.Assert.*;
4 import org.testng.annotations.BeforeMethod;
5 import org.testng.annotations.Test;
7 /** Demonstrating POJO testing of HTML page model. Runs in good old HotSpot
8 * as it does not reference any HTML elements or browser functionality. Just
9 * operates on the page model.
11 * @author Jaroslav Tulach <jtulach@netbeans.org>
13 public class AppTest {
18 public void initModel() {
19 model = new Index().applyBindings();
22 @Test public void testHelloMessage() {
24 assertEquals(model.getHelloMessage(), "Hello Joe!", "Cleared after pressing +");