Package testsuite.sitemesh

Source Code of testsuite.sitemesh.FreemarkerDecoratorTest

package testsuite.sitemesh;

import com.meterware.httpunit.WebResponse;
import electric.xml.Document;
import testsuite.tester.WebTest;

/**
* @author <a href="mailto:richard.hallier@freesbee.fr">Richard Hallier</a>
* @version $Revision: 1.2 $
*/
public class FreemarkerDecoratorTest  extends WebTest {
    public void testFreemarkerDecoratedPage() throws Exception {
    WebResponse rs = wc.getResponse( baseUrl + "/freemarker/freemarker.jsp" );
    Document doc = getDocument( rs );
    assertEquals( "[:: Simple Freemarker Page ::]", rs.getTitle() );
    assertEquals( "Hello Freemarker World", doc.getElementWithId( "p1" ).getText().toString() );
    assertEquals( "footer", doc.getElementWithId( "footer" ).getText().toString() );
    assertEquals( "Simple Freemarker Page", doc.getElementWithId( "header" ).getText().toString() );
        assertEquals( "\u0126\u0118\u0139\u0139\u0150", doc.getElementWithId( "i18n" ).getText().toString() );
  }
}
TOP

Related Classes of testsuite.sitemesh.FreemarkerDecoratorTest

TOP
Copyright © 2018 www.massapi.com. 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.