assertEquals("/foo/bar/foo.gsp", uriSupport.getViewURI(controller, "bar/foo"));
}
public void testNoSuffixGetViewURIForController() throws IllegalAccessException, InstantiationException {
GroovyObject controller = (GroovyObject) new GroovyClassLoader().parseClass("class FooController { }").newInstance();
GroovyPagesUriSupport uriSupport = new GroovyPagesUriSupport();
assertEquals("/foo/bar", uriSupport.getNoSuffixViewURI(controller, "bar"));
assertEquals("/bar/foo", uriSupport.getNoSuffixViewURI(controller, "/bar/foo"));
assertEquals("/foo/bar/foo", uriSupport.getNoSuffixViewURI(controller, "bar/foo"));
}