incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1131115 - /incubator/bval/sandbox/lang3-work/bval-jsr303-dynamic/extval-shared-tests/src/main/java/org/apache/bval/jsr303/dynamic/extval/AllowedValuesComponentInitializerTestCase.java
Date Fri, 03 Jun 2011 17:22:57 GMT
Author: mbenson
Date: Fri Jun  3 17:22:57 2011
New Revision: 1131115

URL: http://svn.apache.org/viewvc?rev=1131115&view=rev
Log:
test that created UISelectItems components are reused

Modified:
    incubator/bval/sandbox/lang3-work/bval-jsr303-dynamic/extval-shared-tests/src/main/java/org/apache/bval/jsr303/dynamic/extval/AllowedValuesComponentInitializerTestCase.java

Modified: incubator/bval/sandbox/lang3-work/bval-jsr303-dynamic/extval-shared-tests/src/main/java/org/apache/bval/jsr303/dynamic/extval/AllowedValuesComponentInitializerTestCase.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/lang3-work/bval-jsr303-dynamic/extval-shared-tests/src/main/java/org/apache/bval/jsr303/dynamic/extval/AllowedValuesComponentInitializerTestCase.java?rev=1131115&r1=1131114&r2=1131115&view=diff
==============================================================================
--- incubator/bval/sandbox/lang3-work/bval-jsr303-dynamic/extval-shared-tests/src/main/java/org/apache/bval/jsr303/dynamic/extval/AllowedValuesComponentInitializerTestCase.java
(original)
+++ incubator/bval/sandbox/lang3-work/bval-jsr303-dynamic/extval-shared-tests/src/main/java/org/apache/bval/jsr303/dynamic/extval/AllowedValuesComponentInitializerTestCase.java
Fri Jun  3 17:22:57 2011
@@ -143,6 +143,7 @@ public class AllowedValuesComponentIniti
             assertNotNull(selectItem);
             assertEquals(constraint.value()[i], selectItem.getValue());
         }
+        assertSame(items, ComponentUtils.findFirstChildOfType(UISelectItems.class, selectOneListbox));
     }
 
     @Test
@@ -172,6 +173,7 @@ public class AllowedValuesComponentIniti
             assertNotNull(selectItem);
             assertEquals(constraint.value()[i], selectItem.getValue());
         }
+        assertSame(items, ComponentUtils.findFirstChildOfType(UISelectItems.class, selectOneMenu));
     }
 
     @Test
@@ -201,6 +203,7 @@ public class AllowedValuesComponentIniti
             assertEquals(labeledValueItem.label(), e.getKey());
             assertEquals(labeledValueItem.value(), e.getValue());
         }
+        assertSame(items, ComponentUtils.findFirstChildOfType(UISelectItems.class, selectOneRadio));
     }
 
     @Test



Mime
View raw message