Esempio n. 1
0
 @Test
 public void testCreateUISelectManyDefaultValue() throws Exception {
   UISelectMany<String> input = factory.createSelectMany("foo", 'f', String.class);
   Assert.assertNotNull(input);
   input.setDefaultValue((Iterable<String>) null);
   Assert.assertFalse(input.hasDefaultValue());
 }
Esempio n. 2
0
 @Test
 public void testCreateUISelectMany() throws Exception {
   UISelectMany<String> input = factory.createSelectMany("foo", String.class);
   Assert.assertNotNull(input);
   Assert.assertTrue(input.hasFacet(HintsFacet.class));
   Assert.assertEquals(InputComponents.DEFAULT_SHORT_NAME, input.getShortName());
 }
Esempio n. 3
0
 @Test
 public void testCreateUISelectManyWithShortName() throws Exception {
   UISelectMany<String> input = factory.createSelectMany("foo", 'f', String.class);
   Assert.assertNotNull(input);
   Assert.assertTrue(input.hasFacet(HintsFacet.class));
   Assert.assertEquals('f', input.getShortName());
 }