Author: julien_viet
Date: 2010-11-29 10:35:58 -0500 (Mon, 29 Nov 2010)
New Revision: 5355
Modified:
portal/branches/navcontroller/component/web/controller/src/test/java/org/exoplatform/web/controller/router/TestPathParamEncoding.java
Log:
complete unit test for render
Modified:
portal/branches/navcontroller/component/web/controller/src/test/java/org/exoplatform/web/controller/router/TestPathParamEncoding.java
===================================================================
---
portal/branches/navcontroller/component/web/controller/src/test/java/org/exoplatform/web/controller/router/TestPathParamEncoding.java 2010-11-29
15:32:23 UTC (rev 5354)
+++
portal/branches/navcontroller/component/web/controller/src/test/java/org/exoplatform/web/controller/router/TestPathParamEncoding.java 2010-11-29
15:35:58 UTC (rev 5355)
@@ -72,7 +72,10 @@
assertEquals(Collections.singletonMap(QualifiedName.create("p"),
"/platform/administrator/"),
router.route("/_platform_administrator_"));
assertEquals(Collections.singletonMap(QualifiedName.create("p"),
"/platform/administrator/"),
router.route("/_platform_administrator_/"));
- // todo : render
+ // Render
+ assertEquals("/_platform_administrator",
router.render(Collections.singletonMap(QualifiedName.create("p"),
"/platform/administrator")));
+ assertEquals("/_platform_administrator_",
router.render(Collections.singletonMap(QualifiedName.create("p"),
"/platform/administrator/")));
+ assertEquals(null,
router.render(Collections.singletonMap(QualifiedName.create("p"),
"/platform/administrator//")));
}
public void testWildcardPathParamWithPreservePath() throws Exception
Show replies by date