Author: alexsmirnov
Date: 2007-07-26 20:07:59 -0400 (Thu, 26 Jul 2007)
New Revision: 1879
Modified:
trunk/framework/test/src/test/java/org/ajax4jsf/application/AjaxStateManagerTest.java
Log:
Remove generics, for a JDK 1.3 compability
Modified:
trunk/framework/test/src/test/java/org/ajax4jsf/application/AjaxStateManagerTest.java
===================================================================
---
trunk/framework/test/src/test/java/org/ajax4jsf/application/AjaxStateManagerTest.java 2007-07-26
23:27:18 UTC (rev 1878)
+++
trunk/framework/test/src/test/java/org/ajax4jsf/application/AjaxStateManagerTest.java 2007-07-27
00:07:59 UTC (rev 1879)
@@ -87,7 +87,7 @@
public void testTreeNodeApply() throws Exception {
buildTestTree();
TreeStrutureNode node = new TreeStrutureNode();
- node.apply(facesContext, facesContext.getViewRoot(), new HashSet<String>());
+ node.apply(facesContext, facesContext.getViewRoot(), new HashSet());
assertEquals(2, node.getChildren().size());
assertEquals(1, node.getFacets().size());
TreeStrutureNode nodeA = (TreeStrutureNode) node.getFacets().get(FACET_A);
@@ -103,7 +103,7 @@
((UIComponent)viewRoot.getChildren().get(0)).setId(FACET_A);
((UIComponent)viewRoot.getChildren().get(1)).setId(FACET_A);
try {
- node.apply(facesContext, facesContext.getViewRoot(), new HashSet<String>());
+ node.apply(facesContext, facesContext.getViewRoot(), new HashSet());
} catch (IllegalStateException e) {
assertTrue(e.getMessage().startsWith("duplicate"));
return;
@@ -115,7 +115,7 @@
public void testTreeNodeSerialisation() throws Exception {
buildTestTree();
TreeStrutureNode node = new TreeStrutureNode();
- node.apply(facesContext, facesContext.getViewRoot(), new HashSet<String>());
+ node.apply(facesContext, facesContext.getViewRoot(), new HashSet());
ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
ObjectOutputStream out = new ObjectOutputStream(byteOut);
out.writeObject(node);
Show replies by date