1 4 package com.openedit.generators; 5 6 import com.openedit.BaseTestCase; 7 import com.openedit.WebPageRequest; 8 import com.openedit.page.Page; 9 10 13 public class NestedGeneratorTest extends BaseTestCase 14 { 15 16 public NestedGeneratorTest( String name ) 17 { 18 super( name ); 19 } 20 21 22 public void testGenerate() throws Exception 23 { 24 WebPageRequest context = getFixture().createPageRequest( "/generators/nested.html"); 25 context.putPageValue("variable", "$othervariable"); 26 context.putPageValue( "othervariable", ", it worked."); 27 context.getPageStreamer().render(); 28 String result = context.getWriter().toString(); 29 } 32 } 33 | Popular Tags |