01: /*
02: * Created on 11-Jan-2006
03: */
04: package uk.org.ponder.rsf.test.sitemap;
05:
06: import java.util.HashMap;
07:
08: import uk.org.ponder.rsf.test.PlainRSFTests;
09: import uk.org.ponder.rsf.viewstate.EntityCentredViewParameters;
10: import uk.org.ponder.rsf.viewstate.support.BasicViewParametersParser;
11:
12: public class TestSiteMap extends PlainRSFTests {
13: public void testParseECVP() {
14: BasicViewParametersParser bvpp = (BasicViewParametersParser) applicationContext
15: .getBean("viewParametersParser");
16: HashMap attrmap = new HashMap();
17: attrmap.put("flowtoken", "ec38f0");
18: EntityCentredViewParameters ecvp = (EntityCentredViewParameters) bvpp
19: .parse("/recipe/3652/", attrmap);
20: System.out.println("ECVP for entity " + ecvp.entity.ID
21: + " of type " + ecvp.entity.entityname);
22: }
23:
24: }
|