test_class.file: bundles/org.openhab.core/src/test/java/org/openhab/core/items/dto/ItemDTOMapperTest.java
test_class.identifier: ItemDTOMapperTest
test_case.body: @Test
      public void testMapFunctionWithNumberItemAndCountFunction() {
          // testing Group:Number:Count(".*hello.*")
          NumberItem item1 = new NumberItem("item1");
  
          GroupFunctionDTO gFuncDTO = new GroupFunctionDTO();
          gFuncDTO.name = "COUNT";
          gFuncDTO.params = new String[] { ".*hello.*" };
  
          GroupFunction gFunc = ItemDTOMapper.mapFunction(item1, gFuncDTO);
  
          assertThat(gFunc, instanceOf(ArithmeticGroupFunction.Count.class));
          assertThat(gFunc.getParameters().length, is(1));
          assertThat(gFunc.getParameters()[0], instanceOf(StringType.class));
      }
test_case.class_method_signature: ItemDTOMapperTest.testMapFunctionWithNumberItemAndCountFunction()
test_case.full_signature: @Test public void testMapFunctionWithNumberItemAndCountFunction()
test_case.identifier: testMapFunctionWithNumberItemAndCountFunction
test_case.invocations: mapFunction assertThat instanceOf assertThat getParameters is assertThat getParameters instanceOf
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMapFunctionWithNumberItemAndCountFunction()
focal_class.declarator: GROUP_FUNCTION_HELPER = new GroupFunctionHelper()
focal_class.modifier: private static final
focal_class.original_string: private static final GroupFunctionHelper GROUP_FUNCTION_HELPER = new GroupFunctionHelper();
focal_class.type: GroupFunctionHelper
focal_class.var_name: GROUP_FUNCTION_HELPER
focal_class.file: bundles/org.openhab.core/src/main/java/org/openhab/core/items/dto/ItemDTOMapper.java
focal_class.identifier: ItemDTOMapper
focal_class.class_method_signature: ItemDTOMapper.map(ItemDTO itemDTO, ItemBuilderFactory itemBuilderFactory)
focal_class.full_signature: public static @Nullable Item map(ItemDTO itemDTO, ItemBuilderFactory itemBuilderFactory)
focal_class.identifier: map
focal_class.modifiers: public static @Nullable
focal_class.parameters: (ItemDTO itemDTO, ItemBuilderFactory itemBuilderFactory)
focal_class.return: Item
focal_class.signature: Item map(ItemDTO itemDTO, ItemBuilderFactory itemBuilderFactory)
focal_class.class_method_signature: ItemDTOMapper.mapFunction(@Nullable Item baseItem, GroupFunctionDTO function)
focal_class.full_signature: public static GroupFunction mapFunction(@Nullable Item baseItem, GroupFunctionDTO function)
focal_class.identifier: mapFunction
focal_class.modifiers: public static
focal_class.parameters: (@Nullable Item baseItem, GroupFunctionDTO function)
focal_class.return: GroupFunction
focal_class.signature: GroupFunction mapFunction(@Nullable Item baseItem, GroupFunctionDTO function)
focal_class.class_method_signature: ItemDTOMapper.map(Item item)
focal_class.full_signature: public static ItemDTO map(Item item)
focal_class.identifier: map
focal_class.modifiers: public static
focal_class.parameters: (Item item)
focal_class.return: ItemDTO
focal_class.signature: ItemDTO map(Item item)
focal_class.class_method_signature: ItemDTOMapper.fillProperties(ItemDTO itemDTO, Item item)
focal_class.full_signature: private static void fillProperties(ItemDTO itemDTO, Item item)
focal_class.identifier: fillProperties
focal_class.modifiers: private static
focal_class.parameters: (ItemDTO itemDTO, Item item)
focal_class.return: void
focal_class.signature: void fillProperties(ItemDTO itemDTO, Item item)
focal_class.class_method_signature: ItemDTOMapper.mapFunction(@Nullable GroupFunction function)
focal_class.full_signature: public static @Nullable GroupFunctionDTO mapFunction(@Nullable GroupFunction function)
focal_class.identifier: mapFunction
focal_class.modifiers: public static @Nullable
focal_class.parameters: (@Nullable GroupFunction function)
focal_class.return: GroupFunctionDTO
focal_class.signature: GroupFunctionDTO mapFunction(@Nullable GroupFunction function)
focal_method.body: public static GroupFunction mapFunction(@Nullable Item baseItem, GroupFunctionDTO function) {
          return GROUP_FUNCTION_HELPER.createGroupFunction(function, baseItem);
      }
focal_method.class_method_signature: ItemDTOMapper.mapFunction(@Nullable Item baseItem, GroupFunctionDTO function)
focal_method.full_signature: public static GroupFunction mapFunction(@Nullable Item baseItem, GroupFunctionDTO function)
focal_method.identifier: mapFunction
focal_method.invocations: createGroupFunction
focal_method.modifiers: public static
focal_method.parameters: (@Nullable Item baseItem, GroupFunctionDTO function)
focal_method.return: GroupFunction
focal_method.signature: GroupFunction mapFunction(@Nullable Item baseItem, GroupFunctionDTO function)