/*
 * Copyright 2011, Mysema Ltd
 * 
 * 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 com.mysema.query.domain;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;

import org.junit.Test;

import com.mysema.query.annotations.QueryEntity;

public class CollectionTest {
    
    @QueryEntity
    public static class Person {

        Map<String, ?> map1;
    
        Map<?, String> map2;
        
        Map<?,?> map3;
        
        Map map4;
        
        List<?> list1;
        
        List list2;
        
        Collection<?> collection1;
        
        Collection collection2;
        
        Collection<Collection<Person>> collectionOfCOllection;
        
        Collection<Set<String>> collectionOfSet;
        
        Set<?> set1;
        
        Set set2;
    }
    
    @Test
    public void test() {
//        assertEquals(String.class, QMapWithUndefinedValueTest_Person.person.appData.getParameter(1));
//        assertEquals(Object.class, QMapWithUndefinedValueTest_Person.person.appData.getParameter(1));
    }

}

@@ -634,109 +634,9 @@
 til.
-Collection;%0Aimport java.util.List;%0Aimport java.util.Map;%0Aimport java.util.Set;%0A%0Aimport org.junit.Test
+*
 ;%0A%0Ai
@@ -682,16 +682,39 @@
 yEntity;
+%0Aimport org.junit.Test;
 %0A%0Apublic
@@ -1253,16 +1253,334 @@
 2;%0A    %7D
+%0A%0A    @QueryEntity%0A    public static class Classes %7B%0A%0A        HashMap map1;%0A%0A        HashMap%3C?,?%3E map2;%0A%0A        HashMap%3CString, String%3E map3;%0A%0A        ArrayList list1;%0A%0A        ArrayList%3C?%3E list2;%0A%0A        ArrayList%3CString%3E list3;%0A%0A        HashSet set1;%0A%0A        HashSet%3C?%3E set2;%0A%0A        HashSet%3CString%3E set3;%0A%0A    %7D
 %0A    %0A  

Add test case