PropertyEditorHelper { static boolean isAMatchOfFilter(String propertyNameFilter, PropertyEditorFieldInfo field) { if (propertyNameFilter.isEmpty()) { return true; } return field.getLabel().toUpperCase().contains(propertyNameFilter.toUpperCase()); }  static void extractEditorFrom(final PropertyEditorWidget propertyEditorWidget,
                                         final PanelGroup propertyMenu,
                                         final PropertyEditorEvent event,
                                         final String propertyNameFilter); static void extractEditorFrom(final PropertyEditorWidget propertyEditorWidget,
                                         final PanelGroup propertyMenu,
                                         final PropertyEditorEvent event); static boolean validade(PropertyEditorEvent event);  }
@Test public void isAMatchOfEmptyFilterTest() { PropertyEditorFieldInfo field = new PropertyEditorFieldInfo(); assertTrue(PropertyEditorHelper.isAMatchOfFilter("", field)); }
@Test public void isAMatchOfFilterTest() { PropertyEditorFieldInfo field = new PropertyEditorFieldInfo("label", PropertyEditorType.TEXT); assertTrue(PropertyEditorHelper.isAMatchOfFilter("l", field)); assertTrue(PropertyEditorHelper.isAMatchOfFilter("label", field)); assertTrue(PropertyEditorHelper.isAMatchOfFilter("LABEL", field)); assertTrue(PropertyEditorHelper.isAMatchOfFilter("abel", field)); assertFalse(PropertyEditorHelper.isAMatchOfFilter("LABELL", field)); assertFalse(PropertyEditorHelper.isAMatchOfFilter("LASBELL", field)); assertFalse(PropertyEditorHelper.isAMatchOfFilter("p", field)); }