Unit test URLMaps
Create an almost blank template, a page for it and a container inside that just shows the content's basic data. We can create requests from the unit tests that parses the response and make sure content is loaded respecting the URL.
Make sure multilingual works. See #2507
Jorge:
Not sure this is useful for unit tests like this, but I added mockito to our libs for this task. It allows you to mock up requests and responses and pass them right to our servlets
See here:
https://github.com/dotCMS/enterprise-2.x/commit/31eb1b78ef3e814214aab3c003d6740d444c0469#L0R309
Will
Will Ezell http://dotcms.com phone: (305) 900-2001 ext. 7010 direct: (978) 294-9429 https://www.google.com/voice/b/0?pli=1#phones skype: wezell1
On Tue, Apr 9, 2013 at 5:36 PM, Jorge Urdaneta [email protected]:
Create an almost blank template, a page for it and a container inside that just shows the content's basic data. We can create requests from the unit tests that parses the response and make sure content is loaded respecting the URL.
Make sure multilingual works. See #2507https://github.com/dotCMS/dotCMS/issues/2507
— Reply to this email directly or view it on GitHubhttps://github.com/dotCMS/dotCMS/issues/2581 .
I actually think the servlettestcase from junit will help here.