Added Tiger tests
This commit is contained in:
parent
baac76e2b1
commit
0a89948f53
|
|
@ -0,0 +1,48 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2002-2007 the original author or authors.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.springframework.beans;
|
||||||
|
|
||||||
|
import junit.framework.Assert;
|
||||||
|
import junit.framework.TestCase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Juergen Hoeller
|
||||||
|
*/
|
||||||
|
public class BeanWrapperEnumTests extends TestCase {
|
||||||
|
|
||||||
|
public void testCustomEnum() {
|
||||||
|
GenericBean gb = new GenericBean();
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.setPropertyValue("customEnum", "VALUE_1");
|
||||||
|
Assert.assertEquals(CustomEnum.VALUE_1, gb.getCustomEnum());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testCustomEnumWithNull() {
|
||||||
|
GenericBean gb = new GenericBean();
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.setPropertyValue("customEnum", null);
|
||||||
|
Assert.assertEquals(null, gb.getCustomEnum());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testCustomEnumWithEmptyString() {
|
||||||
|
GenericBean gb = new GenericBean();
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.setPropertyValue("customEnum", "");
|
||||||
|
Assert.assertEquals(null, gb.getCustomEnum());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,515 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2002-2008 the original author or authors.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.springframework.beans;
|
||||||
|
|
||||||
|
import java.net.MalformedURLException;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Collection;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.LinkedList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
import junit.framework.Assert;
|
||||||
|
import junit.framework.TestCase;
|
||||||
|
|
||||||
|
import org.springframework.beans.propertyeditors.CustomNumberEditor;
|
||||||
|
import org.springframework.beans.propertyeditors.StringTrimmerEditor;
|
||||||
|
import org.springframework.core.io.Resource;
|
||||||
|
import org.springframework.core.io.UrlResource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Juergen Hoeller
|
||||||
|
* @since 18.01.2006
|
||||||
|
*/
|
||||||
|
public class BeanWrapperGenericsTests extends TestCase {
|
||||||
|
|
||||||
|
public void testGenericSet() {
|
||||||
|
GenericBean gb = new GenericBean();
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
Set input = new HashSet();
|
||||||
|
input.add("4");
|
||||||
|
input.add("5");
|
||||||
|
bw.setPropertyValue("integerSet", input);
|
||||||
|
assertTrue(gb.getIntegerSet().contains(new Integer(4)));
|
||||||
|
assertTrue(gb.getIntegerSet().contains(new Integer(5)));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericSetWithConversionFailure() {
|
||||||
|
GenericBean gb = new GenericBean();
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
Set input = new HashSet();
|
||||||
|
input.add(new TestBean());
|
||||||
|
try {
|
||||||
|
bw.setPropertyValue("integerSet", input);
|
||||||
|
fail("Should have thrown TypeMismatchException");
|
||||||
|
}
|
||||||
|
catch (TypeMismatchException ex) {
|
||||||
|
assertTrue(ex.getMessage().indexOf("java.lang.Integer") != -1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericList() throws MalformedURLException {
|
||||||
|
GenericBean gb = new GenericBean();
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
List input = new ArrayList();
|
||||||
|
input.add("http://localhost:8080");
|
||||||
|
input.add("http://localhost:9090");
|
||||||
|
bw.setPropertyValue("resourceList", input);
|
||||||
|
assertEquals(new UrlResource("http://localhost:8080"), gb.getResourceList().get(0));
|
||||||
|
assertEquals(new UrlResource("http://localhost:9090"), gb.getResourceList().get(1));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericListElement() throws MalformedURLException {
|
||||||
|
GenericBean gb = new GenericBean();
|
||||||
|
gb.setResourceList(new ArrayList<Resource>());
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.setPropertyValue("resourceList[0]", "http://localhost:8080");
|
||||||
|
assertEquals(new UrlResource("http://localhost:8080"), gb.getResourceList().get(0));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericMap() {
|
||||||
|
GenericBean gb = new GenericBean();
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
Map input = new HashMap();
|
||||||
|
input.put("4", "5");
|
||||||
|
input.put("6", "7");
|
||||||
|
bw.setPropertyValue("shortMap", input);
|
||||||
|
assertEquals(new Integer(5), gb.getShortMap().get(new Short("4")));
|
||||||
|
assertEquals(new Integer(7), gb.getShortMap().get(new Short("6")));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericMapElement() {
|
||||||
|
GenericBean gb = new GenericBean();
|
||||||
|
gb.setShortMap(new HashMap<Short, Integer>());
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.setPropertyValue("shortMap[4]", "5");
|
||||||
|
assertEquals(new Integer(5), bw.getPropertyValue("shortMap[4]"));
|
||||||
|
assertEquals(new Integer(5), gb.getShortMap().get(new Short("4")));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericMapWithKeyType() {
|
||||||
|
GenericBean gb = new GenericBean();
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
Map input = new HashMap();
|
||||||
|
input.put("4", "5");
|
||||||
|
input.put("6", "7");
|
||||||
|
bw.setPropertyValue("longMap", input);
|
||||||
|
assertEquals("5", gb.getLongMap().get(new Long("4")));
|
||||||
|
assertEquals("7", gb.getLongMap().get(new Long("6")));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericMapElementWithKeyType() {
|
||||||
|
GenericBean gb = new GenericBean();
|
||||||
|
gb.setLongMap(new HashMap<Long, Integer>());
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.setPropertyValue("longMap[4]", "5");
|
||||||
|
assertEquals("5", gb.getLongMap().get(new Long("4")));
|
||||||
|
assertEquals("5", bw.getPropertyValue("longMap[4]"));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericMapWithCollectionValue() {
|
||||||
|
GenericBean gb = new GenericBean();
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.registerCustomEditor(Number.class, new CustomNumberEditor(Integer.class, false));
|
||||||
|
Map input = new HashMap();
|
||||||
|
HashSet value1 = new HashSet();
|
||||||
|
value1.add(new Integer(1));
|
||||||
|
input.put("1", value1);
|
||||||
|
ArrayList value2 = new ArrayList();
|
||||||
|
value2.add(Boolean.TRUE);
|
||||||
|
input.put("2", value2);
|
||||||
|
bw.setPropertyValue("collectionMap", input);
|
||||||
|
assertTrue(gb.getCollectionMap().get(new Integer(1)) instanceof HashSet);
|
||||||
|
assertTrue(gb.getCollectionMap().get(new Integer(2)) instanceof ArrayList);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericMapElementWithCollectionValue() {
|
||||||
|
GenericBean gb = new GenericBean();
|
||||||
|
gb.setCollectionMap(new HashMap<Number, Collection<? extends Object>>());
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.registerCustomEditor(Number.class, new CustomNumberEditor(Integer.class, false));
|
||||||
|
HashSet value1 = new HashSet();
|
||||||
|
value1.add(new Integer(1));
|
||||||
|
bw.setPropertyValue("collectionMap[1]", value1);
|
||||||
|
assertTrue(gb.getCollectionMap().get(new Integer(1)) instanceof HashSet);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericListOfLists() throws MalformedURLException {
|
||||||
|
GenericBean<String> gb = new GenericBean<String>();
|
||||||
|
List<List<Integer>> list = new LinkedList<List<Integer>>();
|
||||||
|
list.add(new LinkedList<Integer>());
|
||||||
|
gb.setListOfLists(list);
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.setPropertyValue("listOfLists[0][0]", new Integer(5));
|
||||||
|
assertEquals(new Integer(5), bw.getPropertyValue("listOfLists[0][0]"));
|
||||||
|
assertEquals(new Integer(5), gb.getListOfLists().get(0).get(0));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericListOfListsWithElementConversion() throws MalformedURLException {
|
||||||
|
GenericBean<String> gb = new GenericBean<String>();
|
||||||
|
List<List<Integer>> list = new LinkedList<List<Integer>>();
|
||||||
|
list.add(new LinkedList<Integer>());
|
||||||
|
gb.setListOfLists(list);
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.setPropertyValue("listOfLists[0][0]", "5");
|
||||||
|
assertEquals(new Integer(5), bw.getPropertyValue("listOfLists[0][0]"));
|
||||||
|
assertEquals(new Integer(5), gb.getListOfLists().get(0).get(0));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericListOfArrays() throws MalformedURLException {
|
||||||
|
GenericBean<String> gb = new GenericBean<String>();
|
||||||
|
ArrayList<String[]> list = new ArrayList<String[]>();
|
||||||
|
list.add(new String[] {"str1", "str2"});
|
||||||
|
gb.setListOfArrays(list);
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.setPropertyValue("listOfArrays[0][1]", "str3 ");
|
||||||
|
assertEquals("str3 ", bw.getPropertyValue("listOfArrays[0][1]"));
|
||||||
|
assertEquals("str3 ", gb.getListOfArrays().get(0)[1]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericListOfArraysWithElementConversion() throws MalformedURLException {
|
||||||
|
GenericBean<String> gb = new GenericBean<String>();
|
||||||
|
ArrayList<String[]> list = new ArrayList<String[]>();
|
||||||
|
list.add(new String[] {"str1", "str2"});
|
||||||
|
gb.setListOfArrays(list);
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.registerCustomEditor(String.class, new StringTrimmerEditor(false));
|
||||||
|
bw.setPropertyValue("listOfArrays[0][1]", "str3 ");
|
||||||
|
assertEquals("str3", bw.getPropertyValue("listOfArrays[0][1]"));
|
||||||
|
assertEquals("str3", gb.getListOfArrays().get(0)[1]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericListOfMaps() throws MalformedURLException {
|
||||||
|
GenericBean<String> gb = new GenericBean<String>();
|
||||||
|
List<Map<Integer, Long>> list = new LinkedList<Map<Integer, Long>>();
|
||||||
|
list.add(new HashMap<Integer, Long>());
|
||||||
|
gb.setListOfMaps(list);
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.setPropertyValue("listOfMaps[0][10]", new Long(5));
|
||||||
|
assertEquals(new Long(5), bw.getPropertyValue("listOfMaps[0][10]"));
|
||||||
|
assertEquals(new Long(5), gb.getListOfMaps().get(0).get(10));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericListOfMapsWithElementConversion() throws MalformedURLException {
|
||||||
|
GenericBean<String> gb = new GenericBean<String>();
|
||||||
|
List<Map<Integer, Long>> list = new LinkedList<Map<Integer, Long>>();
|
||||||
|
list.add(new HashMap<Integer, Long>());
|
||||||
|
gb.setListOfMaps(list);
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.setPropertyValue("listOfMaps[0][10]", "5");
|
||||||
|
assertEquals(new Long(5), bw.getPropertyValue("listOfMaps[0][10]"));
|
||||||
|
assertEquals(new Long(5), gb.getListOfMaps().get(0).get(10));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericMapOfMaps() throws MalformedURLException {
|
||||||
|
GenericBean<String> gb = new GenericBean<String>();
|
||||||
|
Map<String, Map<Integer, Long>> map = new HashMap<String, Map<Integer, Long>>();
|
||||||
|
map.put("mykey", new HashMap<Integer, Long>());
|
||||||
|
gb.setMapOfMaps(map);
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.setPropertyValue("mapOfMaps[mykey][10]", new Long(5));
|
||||||
|
assertEquals(new Long(5), bw.getPropertyValue("mapOfMaps[mykey][10]"));
|
||||||
|
assertEquals(new Long(5), gb.getMapOfMaps().get("mykey").get(10));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericMapOfMapsWithElementConversion() throws MalformedURLException {
|
||||||
|
GenericBean<String> gb = new GenericBean<String>();
|
||||||
|
Map<String, Map<Integer, Long>> map = new HashMap<String, Map<Integer, Long>>();
|
||||||
|
map.put("mykey", new HashMap<Integer, Long>());
|
||||||
|
gb.setMapOfMaps(map);
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.setPropertyValue("mapOfMaps[mykey][10]", "5");
|
||||||
|
assertEquals(new Long(5), bw.getPropertyValue("mapOfMaps[mykey][10]"));
|
||||||
|
assertEquals(new Long(5), gb.getMapOfMaps().get("mykey").get(10));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericMapOfLists() throws MalformedURLException {
|
||||||
|
GenericBean<String> gb = new GenericBean<String>();
|
||||||
|
Map<Integer, List<Integer>> map = new HashMap<Integer, List<Integer>>();
|
||||||
|
map.put(new Integer(1), new LinkedList<Integer>());
|
||||||
|
gb.setMapOfLists(map);
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.setPropertyValue("mapOfLists[1][0]", new Integer(5));
|
||||||
|
assertEquals(new Integer(5), bw.getPropertyValue("mapOfLists[1][0]"));
|
||||||
|
assertEquals(new Integer(5), gb.getMapOfLists().get(new Integer(1)).get(0));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericMapOfListsWithElementConversion() throws MalformedURLException {
|
||||||
|
GenericBean<String> gb = new GenericBean<String>();
|
||||||
|
Map<Integer, List<Integer>> map = new HashMap<Integer, List<Integer>>();
|
||||||
|
map.put(new Integer(1), new LinkedList<Integer>());
|
||||||
|
gb.setMapOfLists(map);
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.setPropertyValue("mapOfLists[1][0]", "5");
|
||||||
|
assertEquals(new Integer(5), bw.getPropertyValue("mapOfLists[1][0]"));
|
||||||
|
assertEquals(new Integer(5), gb.getMapOfLists().get(new Integer(1)).get(0));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericTypeNestingMapOfInteger() throws Exception {
|
||||||
|
Map<String, String> map = new HashMap<String, String>();
|
||||||
|
map.put("testKey", "100");
|
||||||
|
|
||||||
|
NestedGenericCollectionBean gb = new NestedGenericCollectionBean();
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.setPropertyValue("mapOfInteger", map);
|
||||||
|
|
||||||
|
Object obj = gb.getMapOfInteger().get("testKey");
|
||||||
|
assertTrue(obj instanceof Integer);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericTypeNestingMapOfListOfInteger() throws Exception {
|
||||||
|
Map<String, List<String>> map = new HashMap<String, List<String>>();
|
||||||
|
List<String> list = Arrays.asList(new String[] {"1", "2", "3"});
|
||||||
|
map.put("testKey", list);
|
||||||
|
|
||||||
|
NestedGenericCollectionBean gb = new NestedGenericCollectionBean();
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.setPropertyValue("mapOfListOfInteger", map);
|
||||||
|
|
||||||
|
Object obj = gb.getMapOfListOfInteger().get("testKey").get(0);
|
||||||
|
assertTrue(obj instanceof Integer);
|
||||||
|
assertEquals(1, ((Integer) obj).intValue());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericTypeNestingListOfMapOfInteger() throws Exception {
|
||||||
|
List<Map<String, String>> list = new LinkedList<Map<String, String>>();
|
||||||
|
Map<String, String> map = new HashMap<String, String>();
|
||||||
|
map.put("testKey", "5");
|
||||||
|
list.add(map);
|
||||||
|
|
||||||
|
NestedGenericCollectionBean gb = new NestedGenericCollectionBean();
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.setPropertyValue("listOfMapOfInteger", list);
|
||||||
|
|
||||||
|
Object obj = gb.getListOfMapOfInteger().get(0).get("testKey");
|
||||||
|
assertTrue(obj instanceof Integer);
|
||||||
|
assertEquals(5, ((Integer) obj).intValue());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericTypeNestingMapOfListOfListOfInteger() throws Exception {
|
||||||
|
Map<String, List<List<String>>> map = new HashMap<String, List<List<String>>>();
|
||||||
|
List<String> list = Arrays.asList(new String[] {"1", "2", "3"});
|
||||||
|
map.put("testKey", Collections.singletonList(list));
|
||||||
|
|
||||||
|
NestedGenericCollectionBean gb = new NestedGenericCollectionBean();
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.setPropertyValue("mapOfListOfListOfInteger", map);
|
||||||
|
|
||||||
|
Object obj = gb.getMapOfListOfListOfInteger().get("testKey").get(0).get(0);
|
||||||
|
assertTrue(obj instanceof Integer);
|
||||||
|
assertEquals(1, ((Integer) obj).intValue());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testComplexGenericMap() {
|
||||||
|
Map inputMap = new HashMap();
|
||||||
|
List inputKey = new LinkedList();
|
||||||
|
inputKey.add("1");
|
||||||
|
List inputValue = new LinkedList();
|
||||||
|
inputValue.add("10");
|
||||||
|
inputMap.put(inputKey, inputValue);
|
||||||
|
|
||||||
|
ComplexMapHolder holder = new ComplexMapHolder();
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(holder);
|
||||||
|
bw.setPropertyValue("genericMap", inputMap);
|
||||||
|
|
||||||
|
assertEquals(new Integer(1), holder.getGenericMap().keySet().iterator().next().get(0));
|
||||||
|
assertEquals(new Long(10), holder.getGenericMap().values().iterator().next().get(0));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testComplexGenericMapWithCollectionConversion() {
|
||||||
|
Map inputMap = new HashMap();
|
||||||
|
Set inputKey = new HashSet();
|
||||||
|
inputKey.add("1");
|
||||||
|
Set inputValue = new HashSet();
|
||||||
|
inputValue.add("10");
|
||||||
|
inputMap.put(inputKey, inputValue);
|
||||||
|
|
||||||
|
ComplexMapHolder holder = new ComplexMapHolder();
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(holder);
|
||||||
|
bw.setPropertyValue("genericMap", inputMap);
|
||||||
|
|
||||||
|
assertEquals(new Integer(1), holder.getGenericMap().keySet().iterator().next().get(0));
|
||||||
|
assertEquals(new Long(10), holder.getGenericMap().values().iterator().next().get(0));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testComplexGenericIndexedMapEntry() {
|
||||||
|
List inputValue = new LinkedList();
|
||||||
|
inputValue.add("10");
|
||||||
|
|
||||||
|
ComplexMapHolder holder = new ComplexMapHolder();
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(holder);
|
||||||
|
bw.setPropertyValue("genericIndexedMap[1]", inputValue);
|
||||||
|
|
||||||
|
assertEquals(new Integer(1), holder.getGenericIndexedMap().keySet().iterator().next());
|
||||||
|
assertEquals(new Long(10), holder.getGenericIndexedMap().values().iterator().next().get(0));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testComplexGenericIndexedMapEntryWithCollectionConversion() {
|
||||||
|
Set inputValue = new HashSet();
|
||||||
|
inputValue.add("10");
|
||||||
|
|
||||||
|
ComplexMapHolder holder = new ComplexMapHolder();
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(holder);
|
||||||
|
bw.setPropertyValue("genericIndexedMap[1]", inputValue);
|
||||||
|
|
||||||
|
assertEquals(new Integer(1), holder.getGenericIndexedMap().keySet().iterator().next());
|
||||||
|
assertEquals(new Long(10), holder.getGenericIndexedMap().values().iterator().next().get(0));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testComplexDerivedIndexedMapEntry() {
|
||||||
|
List inputValue = new LinkedList();
|
||||||
|
inputValue.add("10");
|
||||||
|
|
||||||
|
ComplexMapHolder holder = new ComplexMapHolder();
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(holder);
|
||||||
|
bw.setPropertyValue("derivedIndexedMap[1]", inputValue);
|
||||||
|
|
||||||
|
assertEquals(new Integer(1), holder.getDerivedIndexedMap().keySet().iterator().next());
|
||||||
|
assertEquals(new Long(10), holder.getDerivedIndexedMap().values().iterator().next().get(0));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testComplexDerivedIndexedMapEntryWithCollectionConversion() {
|
||||||
|
Set inputValue = new HashSet();
|
||||||
|
inputValue.add("10");
|
||||||
|
|
||||||
|
ComplexMapHolder holder = new ComplexMapHolder();
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(holder);
|
||||||
|
bw.setPropertyValue("derivedIndexedMap[1]", inputValue);
|
||||||
|
|
||||||
|
assertEquals(new Integer(1), holder.getDerivedIndexedMap().keySet().iterator().next());
|
||||||
|
assertEquals(new Long(10), holder.getDerivedIndexedMap().values().iterator().next().get(0));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericallyTypedIntegerBean() throws Exception {
|
||||||
|
GenericIntegerBean gb = new GenericIntegerBean();
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.setPropertyValue("genericProperty", "10");
|
||||||
|
bw.setPropertyValue("genericListProperty", new String[] {"20", "30"});
|
||||||
|
Assert.assertEquals(new Integer(10), gb.getGenericProperty());
|
||||||
|
Assert.assertEquals(new Integer(20), gb.getGenericListProperty().get(0));
|
||||||
|
Assert.assertEquals(new Integer(30), gb.getGenericListProperty().get(1));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testGenericallyTypedSetOfIntegerBean() throws Exception {
|
||||||
|
GenericSetOfIntegerBean gb = new GenericSetOfIntegerBean();
|
||||||
|
BeanWrapper bw = new BeanWrapperImpl(gb);
|
||||||
|
bw.setPropertyValue("genericProperty", "10");
|
||||||
|
bw.setPropertyValue("genericListProperty", new String[] {"20", "30"});
|
||||||
|
Assert.assertEquals(new Integer(10), gb.getGenericProperty().iterator().next());
|
||||||
|
Assert.assertEquals(new Integer(20), gb.getGenericListProperty().get(0).iterator().next());
|
||||||
|
Assert.assertEquals(new Integer(30), gb.getGenericListProperty().get(1).iterator().next());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private static abstract class BaseGenericCollectionBean {
|
||||||
|
|
||||||
|
public abstract Object getMapOfInteger();
|
||||||
|
|
||||||
|
public abstract Map getMapOfListOfInteger();
|
||||||
|
|
||||||
|
public abstract void setMapOfListOfInteger(Map<String, List<Integer>> mapOfListOfInteger);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private static class NestedGenericCollectionBean extends BaseGenericCollectionBean {
|
||||||
|
|
||||||
|
private Map<String, Integer> mapOfInteger;
|
||||||
|
|
||||||
|
private Map<String, List<Integer>> mapOfListOfInteger;
|
||||||
|
|
||||||
|
private List<Map<String, Integer>> listOfMapOfInteger;
|
||||||
|
|
||||||
|
private Map<String, List<List<Integer>>> mapOfListOfListOfInteger;
|
||||||
|
|
||||||
|
public Map<String, Integer> getMapOfInteger() {
|
||||||
|
return mapOfInteger;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMapOfInteger(Map<String, Integer> mapOfInteger) {
|
||||||
|
this.mapOfInteger = mapOfInteger;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Map<String, List<Integer>> getMapOfListOfInteger() {
|
||||||
|
return mapOfListOfInteger;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMapOfListOfInteger(Map<String, List<Integer>> mapOfListOfInteger) {
|
||||||
|
this.mapOfListOfInteger = mapOfListOfInteger;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Map<String, Integer>> getListOfMapOfInteger() {
|
||||||
|
return listOfMapOfInteger;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setListOfMapOfInteger(List<Map<String, Integer>> listOfMapOfInteger) {
|
||||||
|
this.listOfMapOfInteger = listOfMapOfInteger;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Map<String, List<List<Integer>>> getMapOfListOfListOfInteger() {
|
||||||
|
return mapOfListOfListOfInteger;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMapOfListOfListOfInteger(Map<String, List<List<Integer>>> mapOfListOfListOfInteger) {
|
||||||
|
this.mapOfListOfListOfInteger = mapOfListOfListOfInteger;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private static class ComplexMapHolder {
|
||||||
|
|
||||||
|
private Map<List<Integer>, List<Long>> genericMap;
|
||||||
|
|
||||||
|
private Map<Integer, List<Long>> genericIndexedMap = new HashMap<Integer, List<Long>>();
|
||||||
|
|
||||||
|
private DerivedMap derivedIndexedMap = new DerivedMap();
|
||||||
|
|
||||||
|
public void setGenericMap(Map<List<Integer>, List<Long>> genericMap) {
|
||||||
|
this.genericMap = genericMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Map<List<Integer>, List<Long>> getGenericMap() {
|
||||||
|
return genericMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGenericIndexedMap(Map<Integer, List<Long>> genericIndexedMap) {
|
||||||
|
this.genericIndexedMap = genericIndexedMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Map<Integer, List<Long>> getGenericIndexedMap() {
|
||||||
|
return genericIndexedMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDerivedIndexedMap(DerivedMap derivedIndexedMap) {
|
||||||
|
this.derivedIndexedMap = derivedIndexedMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DerivedMap getDerivedIndexedMap() {
|
||||||
|
return derivedIndexedMap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private static class DerivedMap extends HashMap<Integer, List<Long>> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2002-2007 the original author or authors.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.springframework.beans;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Juergen Hoeller
|
||||||
|
*/
|
||||||
|
public enum CustomEnum {
|
||||||
|
|
||||||
|
VALUE_1, VALUE_2;
|
||||||
|
|
||||||
|
public String toString() {
|
||||||
|
return "CustomEnum: " + name();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,237 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2002-2008 the original author or authors.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.springframework.beans;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collection;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
import org.springframework.core.io.Resource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Juergen Hoeller
|
||||||
|
*/
|
||||||
|
public class GenericBean<T> {
|
||||||
|
|
||||||
|
private Set<Integer> integerSet;
|
||||||
|
|
||||||
|
private List<Resource> resourceList;
|
||||||
|
|
||||||
|
private List<List<Integer>> listOfLists;
|
||||||
|
|
||||||
|
private ArrayList<String[]> listOfArrays;
|
||||||
|
|
||||||
|
private List<Map<Integer, Long>> listOfMaps;
|
||||||
|
|
||||||
|
private Map plainMap;
|
||||||
|
|
||||||
|
private Map<Short, Integer> shortMap;
|
||||||
|
|
||||||
|
private HashMap<Long, ?> longMap;
|
||||||
|
|
||||||
|
private Map<Number, Collection<? extends Object>> collectionMap;
|
||||||
|
|
||||||
|
private Map<String, Map<Integer, Long>> mapOfMaps;
|
||||||
|
|
||||||
|
private Map<Integer, List<Integer>> mapOfLists;
|
||||||
|
|
||||||
|
private CustomEnum customEnum;
|
||||||
|
|
||||||
|
private T genericProperty;
|
||||||
|
|
||||||
|
private List<T> genericListProperty;
|
||||||
|
|
||||||
|
|
||||||
|
public GenericBean() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public GenericBean(Set<Integer> integerSet) {
|
||||||
|
this.integerSet = integerSet;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GenericBean(Set<Integer> integerSet, List<Resource> resourceList) {
|
||||||
|
this.integerSet = integerSet;
|
||||||
|
this.resourceList = resourceList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GenericBean(HashSet<Integer> integerSet, Map<Short, Integer> shortMap) {
|
||||||
|
this.integerSet = integerSet;
|
||||||
|
this.shortMap = shortMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GenericBean(Map<Short, Integer> shortMap, Resource resource) {
|
||||||
|
this.shortMap = shortMap;
|
||||||
|
this.resourceList = Collections.singletonList(resource);
|
||||||
|
}
|
||||||
|
|
||||||
|
public GenericBean(Map plainMap, Map<Short, Integer> shortMap) {
|
||||||
|
this.plainMap = plainMap;
|
||||||
|
this.shortMap = shortMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GenericBean(HashMap<Long, ?> longMap) {
|
||||||
|
this.longMap = longMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GenericBean(boolean someFlag, Map<Number, Collection<? extends Object>> collectionMap) {
|
||||||
|
this.collectionMap = collectionMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Set<Integer> getIntegerSet() {
|
||||||
|
return integerSet;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIntegerSet(Set<Integer> integerSet) {
|
||||||
|
this.integerSet = integerSet;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Resource> getResourceList() {
|
||||||
|
return resourceList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setResourceList(List<Resource> resourceList) {
|
||||||
|
this.resourceList = resourceList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<List<Integer>> getListOfLists() {
|
||||||
|
return listOfLists;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ArrayList<String[]> getListOfArrays() {
|
||||||
|
return listOfArrays;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setListOfArrays(ArrayList<String[]> listOfArrays) {
|
||||||
|
this.listOfArrays = listOfArrays;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setListOfLists(List<List<Integer>> listOfLists) {
|
||||||
|
this.listOfLists = listOfLists;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Map<Integer, Long>> getListOfMaps() {
|
||||||
|
return listOfMaps;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setListOfMaps(List<Map<Integer, Long>> listOfMaps) {
|
||||||
|
this.listOfMaps = listOfMaps;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Map getPlainMap() {
|
||||||
|
return plainMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Map<Short, Integer> getShortMap() {
|
||||||
|
return shortMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setShortMap(Map<Short, Integer> shortMap) {
|
||||||
|
this.shortMap = shortMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HashMap<Long, ?> getLongMap() {
|
||||||
|
return longMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLongMap(HashMap<Long, ?> longMap) {
|
||||||
|
this.longMap = longMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Map<Number, Collection<? extends Object>> getCollectionMap() {
|
||||||
|
return collectionMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCollectionMap(Map<Number, Collection<? extends Object>> collectionMap) {
|
||||||
|
this.collectionMap = collectionMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Map<String, Map<Integer, Long>> getMapOfMaps() {
|
||||||
|
return mapOfMaps;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMapOfMaps(Map<String, Map<Integer, Long>> mapOfMaps) {
|
||||||
|
this.mapOfMaps = mapOfMaps;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Map<Integer, List<Integer>> getMapOfLists() {
|
||||||
|
return mapOfLists;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMapOfLists(Map<Integer, List<Integer>> mapOfLists) {
|
||||||
|
this.mapOfLists = mapOfLists;
|
||||||
|
}
|
||||||
|
|
||||||
|
public T getGenericProperty() {
|
||||||
|
return genericProperty;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGenericProperty(T genericProperty) {
|
||||||
|
this.genericProperty = genericProperty;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T> getGenericListProperty() {
|
||||||
|
return genericListProperty;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGenericListProperty(List<T> genericListProperty) {
|
||||||
|
this.genericListProperty = genericListProperty;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CustomEnum getCustomEnum() {
|
||||||
|
return customEnum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCustomEnum(CustomEnum customEnum) {
|
||||||
|
this.customEnum = customEnum;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static GenericBean createInstance(Set<Integer> integerSet) {
|
||||||
|
return new GenericBean(integerSet);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GenericBean createInstance(Set<Integer> integerSet, List<Resource> resourceList) {
|
||||||
|
return new GenericBean(integerSet, resourceList);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GenericBean createInstance(HashSet<Integer> integerSet, Map<Short, Integer> shortMap) {
|
||||||
|
return new GenericBean(integerSet, shortMap);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GenericBean createInstance(Map<Short, Integer> shortMap, Resource resource) {
|
||||||
|
return new GenericBean(shortMap, resource);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GenericBean createInstance(Map map, Map<Short, Integer> shortMap) {
|
||||||
|
return new GenericBean(map, shortMap);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GenericBean createInstance(HashMap<Long, ?> longMap) {
|
||||||
|
return new GenericBean(longMap);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GenericBean createInstance(boolean someFlag, Map<Number, Collection<? extends Object>> collectionMap) {
|
||||||
|
return new GenericBean(someFlag, collectionMap);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,24 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2002-2008 the original author or authors.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.springframework.beans;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Juergen Hoeller
|
||||||
|
*/
|
||||||
|
public class GenericIntegerBean extends GenericBean<Integer> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2002-2008 the original author or authors.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.springframework.beans;
|
||||||
|
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Juergen Hoeller
|
||||||
|
*/
|
||||||
|
public class GenericSetOfIntegerBean extends GenericBean<Set<Integer>> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -11,9 +11,6 @@
|
||||||
|
|
||||||
<configurations>
|
<configurations>
|
||||||
<include file="${spring.build.dir}/common/default-ivy-configurations.xml"/>
|
<include file="${spring.build.dir}/common/default-ivy-configurations.xml"/>
|
||||||
<conf name="aspectj" extends="runtime" description="JARs needed to run with AspectJ"/>
|
|
||||||
<conf name="commons-collections" extends="runtime" description="JARs needed to run with Commons Collections"/>
|
|
||||||
<conf name="log4j" extends="runtime" description="JARs needed to use Log4J"/>
|
|
||||||
</configurations>
|
</configurations>
|
||||||
|
|
||||||
<publications>
|
<publications>
|
||||||
|
|
@ -22,10 +19,13 @@
|
||||||
</publications>
|
</publications>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
<dependency org="com.caucho" name="com.springsource.com.caucho" rev="3.1.5" conf="test->compile"/>
|
||||||
<dependency org="com.ibm.websphere" name="com.springsource.com.ibm.websphere.uow" rev="6.0.2.17" conf="test->compile"/>
|
<dependency org="com.ibm.websphere" name="com.springsource.com.ibm.websphere.uow" rev="6.0.2.17" conf="test->compile"/>
|
||||||
<dependency org="com.opensymphony.quartz" name="com.springsource.org.quartz" rev="1.6.2" conf="test->compile"/>
|
<dependency org="com.opensymphony.quartz" name="com.springsource.org.quartz" rev="1.6.2" conf="test->compile"/>
|
||||||
|
<dependency org="com.oracle.toplink.essentials" name="com.springsource.oracle.toplink.essentials" rev="2.0.0.b41-beta2" conf="test->compile"/>
|
||||||
<dependency org="com.sun.syndication" name="com.springsource.com.sun.syndication" rev="0.9.0" conf="test->compile"/>
|
<dependency org="com.sun.syndication" name="com.springsource.com.sun.syndication" rev="0.9.0" conf="test->compile"/>
|
||||||
<dependency org="edu.emory.mathcs.backport" name="com.springsource.edu.emory.mathcs.backport" rev="3.0.0" conf="test->compile"/>
|
<dependency org="edu.emory.mathcs.backport" name="com.springsource.edu.emory.mathcs.backport" rev="3.0.0" conf="test->compile"/>
|
||||||
|
<dependency org="javax.ejb" name="com.springsource.javax.ejb" rev="3.0.0" conf="test->compile"/>
|
||||||
<dependency org="javax.el" name="com.springsource.javax.el" rev="2.1.0" conf="test->compile"/>
|
<dependency org="javax.el" name="com.springsource.javax.el" rev="2.1.0" conf="test->compile"/>
|
||||||
<dependency org="javax.faces" name="com.springsource.javax.faces" rev="1.2.0.08" conf="test->compile"/>
|
<dependency org="javax.faces" name="com.springsource.javax.faces" rev="1.2.0.08" conf="test->compile"/>
|
||||||
<dependency org="javax.jdo" name="com.springsource.javax.jdo" rev="2.0.0" conf="test->compile"/>
|
<dependency org="javax.jdo" name="com.springsource.javax.jdo" rev="2.0.0" conf="test->compile"/>
|
||||||
|
|
@ -46,6 +46,8 @@
|
||||||
<dependency org="org.apache.commons" name="com.springsource.org.apache.commons.dbcp" rev="1.2.2.osgi" conf="test->runtime"/>
|
<dependency org="org.apache.commons" name="com.springsource.org.apache.commons.dbcp" rev="1.2.2.osgi" conf="test->runtime"/>
|
||||||
<dependency org="org.apache.commons" name="com.springsource.org.apache.commons.fileupload" rev="1.2.0" conf="test->compile"/>
|
<dependency org="org.apache.commons" name="com.springsource.org.apache.commons.fileupload" rev="1.2.0" conf="test->compile"/>
|
||||||
<dependency org="org.apache.commons" name="com.springsource.org.apache.commons.pool" rev="1.4.0" conf="test->compile"/>
|
<dependency org="org.apache.commons" name="com.springsource.org.apache.commons.pool" rev="1.4.0" conf="test->compile"/>
|
||||||
|
<dependency org="org.apache.ibatis" name="com.springsource.com.ibatis" rev="2.3.4.726" conf="test->compile"/>
|
||||||
|
<dependency org="org.apache.openjpa" name="com.springsource.org.apache.openjpa.persistence" rev="1.0.2" conf="test->compile"/>
|
||||||
<dependency org="org.apache.poi" name="com.springsource.org.apache.poi" rev="3.0.2.FINAL" conf="test->compile"/>
|
<dependency org="org.apache.poi" name="com.springsource.org.apache.poi" rev="3.0.2.FINAL" conf="test->compile"/>
|
||||||
<dependency org="org.apache.tiles" name="com.springsource.org.apache.tiles" rev="2.0.5" conf="test->compile"/>
|
<dependency org="org.apache.tiles" name="com.springsource.org.apache.tiles" rev="2.0.5" conf="test->compile"/>
|
||||||
<dependency org="org.apache.tiles" name="com.springsource.org.apache.tiles.core" rev="2.0.5.osgi" conf="test->compile"/>
|
<dependency org="org.apache.tiles" name="com.springsource.org.apache.tiles.core" rev="2.0.5.osgi" conf="test->compile"/>
|
||||||
|
|
@ -55,8 +57,10 @@
|
||||||
<dependency org="org.aspectj" name="com.springsource.org.aspectj.weaver" rev="1.5.4" conf="test->compile"/>
|
<dependency org="org.aspectj" name="com.springsource.org.aspectj.weaver" rev="1.5.4" conf="test->compile"/>
|
||||||
<dependency org="org.codehaus.groovy" name="com.springsource.org.codehaus.groovy" rev="1.5.1" conf="test->compile"/>
|
<dependency org="org.codehaus.groovy" name="com.springsource.org.codehaus.groovy" rev="1.5.1" conf="test->compile"/>
|
||||||
<dependency org="org.easymock" name="com.springsource.org.easymock" rev="2.3.0" conf="test->compile"/>
|
<dependency org="org.easymock" name="com.springsource.org.easymock" rev="2.3.0" conf="test->compile"/>
|
||||||
|
<dependency org="org.eclipse.persistence" name="com.springsource.org.eclipse.persistence.jpa" rev="1.0.1" conf="test->compile"/>
|
||||||
<dependency org="org.freemarker" name="com.springsource.freemarker" rev="2.3.12" conf="test->compile"/>
|
<dependency org="org.freemarker" name="com.springsource.freemarker" rev="2.3.12" conf="test->compile"/>
|
||||||
<dependency org="org.hibernate" name="com.springsource.org.hibernate" rev="3.2.6.ga" conf="test->compile"/>
|
<dependency org="org.hibernate" name="com.springsource.org.hibernate" rev="3.2.6.ga" conf="test->compile"/>
|
||||||
|
<dependency org="org.hibernate" name="com.springsource.org.hibernate.ejb" rev="3.3.1.ga" conf="test->compile"/>
|
||||||
<dependency org="org.objectweb.asm" name="com.springsource.org.objectweb.asm" rev="2.2.3" conf="test->runtime" />
|
<dependency org="org.objectweb.asm" name="com.springsource.org.objectweb.asm" rev="2.2.3" conf="test->runtime" />
|
||||||
<dependency org="org.objectweb.asm" name="com.springsource.org.objectweb.asm.commons" rev="2.2.3" conf="test->runtime" />
|
<dependency org="org.objectweb.asm" name="com.springsource.org.objectweb.asm.commons" rev="2.2.3" conf="test->runtime" />
|
||||||
<dependency org="org.springframework" name="org.springframework.aop" rev="latest.integration" conf="test->compile"/>
|
<dependency org="org.springframework" name="org.springframework.aop" rev="latest.integration" conf="test->compile"/>
|
||||||
|
|
@ -77,6 +81,7 @@
|
||||||
<dependency org="org.apache.log4j" name="com.springsource.org.apache.log4j" rev="1.2.15" conf="test->compile"/>
|
<dependency org="org.apache.log4j" name="com.springsource.org.apache.log4j" rev="1.2.15" conf="test->compile"/>
|
||||||
<dependency org="org.custommonkey.xmlunit" name="com.springsource.org.custommonkey.xmlunit" rev="1.2.0" conf="test->compile"/>
|
<dependency org="org.custommonkey.xmlunit" name="com.springsource.org.custommonkey.xmlunit" rev="1.2.0" conf="test->compile"/>
|
||||||
<dependency org="org.easymock" name="com.springsource.org.easymock" rev="2.3.0" conf="test->compile"/>
|
<dependency org="org.easymock" name="com.springsource.org.easymock" rev="2.3.0" conf="test->compile"/>
|
||||||
|
<dependency org="org.testng" name="com.springsource.org.testng" rev="5.8.0" conf="test->compile"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</ivy-module>
|
</ivy-module>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue