mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
Changed return type to checked conversion
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1188962 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -21,13 +21,13 @@
|
||||
|
||||
package org.apache.struts2.views.jsp.ui;
|
||||
|
||||
import org.apache.struts2.TestAction;
|
||||
import org.apache.struts2.views.jsp.AbstractUITagTest;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.struts2.TestAction;
|
||||
import org.apache.struts2.views.jsp.AbstractUITagTest;
|
||||
|
||||
|
||||
/**
|
||||
* Test case for CheckboxList.
|
||||
@@ -43,8 +43,8 @@ public class CheckboxListTest extends AbstractUITagTest {
|
||||
* @return A Map of PropertyHolders values bound to {@link org.apache.struts2.views.jsp.AbstractUITagTest.PropertyHolder#getName()}
|
||||
* as key.
|
||||
*/
|
||||
protected Map initializedGenericTagTestProperties() {
|
||||
Map result = super.initializedGenericTagTestProperties();
|
||||
protected Map<String, PropertyHolder> initializedGenericTagTestProperties() {
|
||||
Map<String, PropertyHolder> result = super.initializedGenericTagTestProperties();
|
||||
new PropertyHolder("value", "hello").addToMap(result);
|
||||
return result;
|
||||
}
|
||||
@@ -63,7 +63,7 @@ public class CheckboxListTest extends AbstractUITagTest {
|
||||
|
||||
private void prepareTagGeneric(CheckboxListTag tag) {
|
||||
TestAction testAction = (TestAction) action;
|
||||
Collection collection = new ArrayList(2);
|
||||
Collection<String> collection = new ArrayList<String>(2);
|
||||
collection.add("hello");
|
||||
collection.add("foo");
|
||||
testAction.setCollection(collection);
|
||||
@@ -79,7 +79,7 @@ public class CheckboxListTest extends AbstractUITagTest {
|
||||
|
||||
public void testMultiple() throws Exception {
|
||||
TestAction testAction = (TestAction) action;
|
||||
Collection collection = new ArrayList(2);
|
||||
Collection<String> collection = new ArrayList<String>(2);
|
||||
collection.add("hello");
|
||||
collection.add("foo");
|
||||
testAction.setCollection(collection);
|
||||
@@ -105,7 +105,7 @@ public class CheckboxListTest extends AbstractUITagTest {
|
||||
|
||||
public void testMultipleWithDisabledOn() throws Exception {
|
||||
TestAction testAction = (TestAction) action;
|
||||
Collection collection = new ArrayList(2);
|
||||
Collection<String> collection = new ArrayList<String>(2);
|
||||
collection.add("hello");
|
||||
collection.add("foo");
|
||||
testAction.setCollection(collection);
|
||||
|
||||
Reference in New Issue
Block a user