@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()); }
@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()); }
@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()); }