Changeset 29598

Show
Ignore:
Timestamp:
01/24/08 12:26:25 (10 months ago)
Author:
ogrisel
Message:

add commented regression test for NXP-1994

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • org.nuxeo.ecm.core/trunk/nuxeo-core-api/src/test/java/org/nuxeo/ecm/core/api/TestPropertyModel.java

    r28612 r29598  
    457457        assertEquals(references, prop.getValue(List.class)); 
    458458        assertEquals(references, prop.getValue()); 
     459 
     460 
     461        // FIXME: NXP-1994: New property model makes list properties return null 
     462        // values instead of empty list 
     463 
     464        // setting an empty list at initialization time should not give null at 
     465        // fetching time 
     466 
     467//        ArrayList<String> emptyList = arrayList(); 
     468//        dp.get("references").init(emptyList); 
     469// 
     470//        prop = dp.get("references"); 
     471//        prop.setValue(emptyList); 
     472// 
     473//        assertEquals(emptyList, prop.getValue(List.class)); 
     474//        assertEquals(emptyList, prop.getValue()); 
    459475    } 
    460476