Replace Ant build with gradle

The master branch has been using Gradle for a while. The expectation
at the time was that minor maintenance releases can be done on 2.3.x
with the existing Ant build. However that is no longer possible to
perform a release and we need to perform a 2.3.3 release.

The change mirrors similar changes on the master branch:

4e81930b72
50a1cf1def

Issue: SWF-1615
This commit is contained in:
Rossen Stoyanchev
2013-12-16 16:29:42 -05:00
parent 9915b5b6aa
commit cc4506d921
508 changed files with 910 additions and 23843 deletions

View File

@@ -26,8 +26,10 @@ public class AjaxViewRootTests extends TestCase {
protected void setUp() throws Exception {
jsf.setUp();
jsf.facesContext().getApplication().setViewHandler(new MockViewHandler());
jsf.facesContext().setResponseWriter(new MockResponseWriter(output, null, null));
jsf.facesContext().getApplication()
.setViewHandler(new MockViewHandler());
jsf.facesContext().setResponseWriter(
new MockResponseWriter(output, null, null));
UIForm form = new UIForm();
form.setId("foo");
@@ -49,7 +51,7 @@ public class AjaxViewRootTests extends TestCase {
}
public void testProcessDecodes() {
jsf.externalContext().getRequestParameterMap().put("processIds", "foo:bar, foo:baz");
jsf.request().addParameter("processIds", "foo:bar, foo:baz");
AjaxViewRoot ajaxRoot = new AjaxViewRoot(testTree);
@@ -59,7 +61,7 @@ public class AjaxViewRootTests extends TestCase {
}
public void testEncodeAll_NoRenderIds() throws IOException {
jsf.externalContext().getRequestParameterMap().put("processIds", "foo:bar, foo:baz");
jsf.request().addParameter("processIds", "foo:bar, foo:baz");
AjaxViewRoot ajaxRoot = new AjaxViewRoot(testTree);
@@ -67,14 +69,20 @@ public class AjaxViewRootTests extends TestCase {
assertEquals(1, ajaxRoot.getProcessIds().length);
assertEquals(1, ajaxRoot.getRenderIds().length);
assertEquals(StringUtils.arrayToCommaDelimitedString(ajaxRoot.getProcessIds()), StringUtils
.arrayToCommaDelimitedString(ajaxRoot.getRenderIds()));
assertEquals(
StringUtils.arrayToCommaDelimitedString(ajaxRoot
.getProcessIds()),
StringUtils.arrayToCommaDelimitedString(ajaxRoot.getRenderIds()));
}
@SuppressWarnings("unchecked")
public void testEncodeAll_RenderIdsExpr() throws IOException {
jsf.externalContext().getRequestMap().put(View.RENDER_FRAGMENTS_ATTRIBUTE,
StringUtils.delimitedListToStringArray("foo:bar,foo:baz", ",", " "));
jsf.externalContext()
.getRequestMap()
.put(View.RENDER_FRAGMENTS_ATTRIBUTE,
StringUtils.delimitedListToStringArray(
"foo:bar,foo:baz", ",", " "));
AjaxViewRoot ajaxRoot = new AjaxViewRoot(testTree);
@@ -82,6 +90,8 @@ public class AjaxViewRootTests extends TestCase {
assertEquals(1, ajaxRoot.getRenderIds().length);
assertEquals("foo:bar", StringUtils.arrayToCommaDelimitedString(ajaxRoot.getRenderIds()));
assertEquals(
"foo:bar",
StringUtils.arrayToCommaDelimitedString(ajaxRoot.getRenderIds()));
}
}