1 4 package com.openedit.page.manage; 5 6 import com.openedit.BaseTestCase; 7 import com.openedit.config.Configuration; 8 import com.openedit.config.XMLConfiguration; 9 10 13 public class PageMetaDataManagerTest extends BaseTestCase 14 { 15 16 public PageMetaDataManagerTest( String name ) 17 { 18 super( name ); 19 } 20 21 public PageSettingsManager getConfigurator() 22 { 23 return getFixture().getPageManager().getPageSettingsManager(); 24 } 25 37 38 39 protected Configuration getSimpleGeneratorConfig() 40 { 41 XMLConfiguration config = new XMLConfiguration(); 42 config.setName("generator"); 43 config.setAttribute("name","velocity"); 44 return config; 45 } 46 47 protected Configuration getNestedGeneratorConfig() 48 { 49 57 XMLConfiguration config = new XMLConfiguration("generator"); 58 config.setAttribute("name","velocity"); 59 60 Configuration child = config.addChild("generator"); 61 child.setAttribute("name","jsp"); 62 63 return config; 64 65 66 } 67 } 68 | Popular Tags |