test_class.declarator: rule = new PowerMockRule()
test_class.modifier: @Rule
    public
test_class.original_string: @Rule
    public PowerMockRule rule = new PowerMockRule();
test_class.type: PowerMockRule
test_class.var_name: rule
test_class.declarator: CUSTOM_BUBBLING_EVENT_TYPES = "customBubblingEventTypes"
test_class.modifier: private static final
test_class.original_string: private static final String CUSTOM_BUBBLING_EVENT_TYPES = "customBubblingEventTypes";
test_class.type: String
test_class.var_name: CUSTOM_BUBBLING_EVENT_TYPES
test_class.declarator: CUSTOM_DIRECT_EVENT_TYPES = "customDirectEventTypes"
test_class.modifier: private static final
test_class.original_string: private static final String CUSTOM_DIRECT_EVENT_TYPES = "customDirectEventTypes";
test_class.type: String
test_class.var_name: CUSTOM_DIRECT_EVENT_TYPES
test_class.declarator: TWIRL_BUBBLING_EVENT_MAP = MapBuilder.of(
        "phasedRegistrationNames",
        MapBuilder.of(
            "bubbled",
            "onTwirl",
            "captured",
            "onTwirlCaptured"))
test_class.modifier: private static final
test_class.original_string: private static final Map TWIRL_BUBBLING_EVENT_MAP = MapBuilder.of(
        "phasedRegistrationNames",
        MapBuilder.of(
            "bubbled",
            "onTwirl",
            "captured",
            "onTwirlCaptured"));
test_class.type: Map
test_class.var_name: TWIRL_BUBBLING_EVENT_MAP
test_class.declarator: TWIRL_DIRECT_EVENT_MAP = MapBuilder.of("registrationName", "onTwirl")
test_class.modifier: private static final
test_class.original_string: private static final Map TWIRL_DIRECT_EVENT_MAP = MapBuilder.of("registrationName", "onTwirl");
test_class.type: Map
test_class.var_name: TWIRL_DIRECT_EVENT_MAP
test_class.declarator: mReactContext
test_class.modifier: private
test_class.original_string: private ReactApplicationContext mReactContext;
test_class.type: ReactApplicationContext
test_class.var_name: mReactContext
test_class.declarator: mUIImplementation
test_class.modifier: private
test_class.original_string: private UIImplementation mUIImplementation;
test_class.type: UIImplementation
test_class.var_name: mUIImplementation
test_class.file: node_modules/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/UIManagerModuleConstantsTest.java
test_class.identifier: UIManagerModuleConstantsTest
test_case.body: @Test
    public void testMergeConstants() {
      ViewManager managerX = mock(ViewManager.class);
      when(managerX.getExportedCustomDirectEventTypeConstants()).thenReturn(MapBuilder.of(
          "onTwirl",
          MapBuilder.of(
              "registrationName",
              "onTwirl",
              "keyToOverride",
              "valueX",
              "mapToMerge",
              MapBuilder.of("keyToOverride", "innerValueX", "anotherKey", "valueX"))));
  
      ViewManager managerY = mock(ViewManager.class);
      when(managerY.getExportedCustomDirectEventTypeConstants()).thenReturn(MapBuilder.of(
          "onTwirl",
          MapBuilder.of(
              "extraKey",
              "extraValue",
              "keyToOverride",
              "valueY",
              "mapToMerge",
              MapBuilder.of("keyToOverride", "innerValueY", "extraKey", "valueY"))));
  
      List<ViewManager> viewManagers = Arrays.asList(managerX, managerY);
      UIManagerModule uiManagerModule = new UIManagerModule(
          mReactContext,
          viewManagers,
          mUIImplementation);
      Map<String, Object> constants = uiManagerModule.getConstants();
      assertThat((Map) constants.get(CUSTOM_DIRECT_EVENT_TYPES)).containsKey("onTwirl");
  
      Map twirlMap = (Map) valueAtPath(constants, CUSTOM_DIRECT_EVENT_TYPES, "onTwirl");
      assertThat(twirlMap)
          .contains(MapEntry.entry("registrationName", "onTwirl"))
          .contains(MapEntry.entry("keyToOverride", "valueY"))
          .contains(MapEntry.entry("extraKey", "extraValue"))
          .containsKey("mapToMerge");
  
      Map mapToMerge = (Map) valueAtPath(twirlMap, "mapToMerge");
      assertThat(mapToMerge)
          .contains(MapEntry.entry("keyToOverride", "innerValueY"))
          .contains(MapEntry.entry("anotherKey", "valueX"))
          .contains(MapEntry.entry("extraKey", "valueY"));
    }
test_case.class_method_signature: UIManagerModuleConstantsTest.testMergeConstants()
test_case.full_signature: @Test public void testMergeConstants()
test_case.identifier: testMergeConstants
test_case.invocations: mock thenReturn when getExportedCustomDirectEventTypeConstants of of of mock thenReturn when getExportedCustomDirectEventTypeConstants of of of asList getConstants containsKey assertThat get valueAtPath containsKey contains contains contains assertThat entry entry entry valueAtPath contains contains contains assertThat entry entry entry
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMergeConstants()
focal_class.declarator: ACTION_DISMISSED = "dismissed"
focal_class.modifier: public static final
focal_class.original_string: public static final String ACTION_DISMISSED = "dismissed";
focal_class.type: String
focal_class.var_name: ACTION_DISMISSED
focal_class.declarator: ACTION_ITEM_SELECTED = "itemSelected"
focal_class.modifier: public static final
focal_class.original_string: public static final String ACTION_ITEM_SELECTED = "itemSelected";
focal_class.type: String
focal_class.var_name: ACTION_ITEM_SELECTED
focal_class.file: node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstants.java
focal_class.identifier: UIManagerModuleConstants
focal_class.class_method_signature: UIManagerModuleConstants.getBubblingEventTypeConstants()
focal_class.full_signature: static Map getBubblingEventTypeConstants()
focal_class.identifier: getBubblingEventTypeConstants
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: Map
focal_class.signature: Map getBubblingEventTypeConstants()
focal_class.class_method_signature: UIManagerModuleConstants.getDirectEventTypeConstants()
focal_class.full_signature: static Map getDirectEventTypeConstants()
focal_class.identifier: getDirectEventTypeConstants
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: Map
focal_class.signature: Map getDirectEventTypeConstants()
focal_class.class_method_signature: UIManagerModuleConstants.getConstants()
focal_class.full_signature: public static Map<String, Object> getConstants()
focal_class.identifier: getConstants
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Map<String, Object>
focal_class.signature: Map<String, Object> getConstants()
focal_method.body: public static Map<String, Object> getConstants() {
      HashMap<String, Object> constants = new HashMap<String, Object>();
      constants.put(
          "UIView",
          MapBuilder.of(
              "ContentMode",
              MapBuilder.of(
                  "ScaleAspectFit",
                  ImageView.ScaleType.CENTER_INSIDE.ordinal(),
                  "ScaleAspectFill",
                  ImageView.ScaleType.CENTER_CROP.ordinal())));
  
      DisplayMetrics displayMetrics = DisplayMetricsHolder.getWindowDisplayMetrics();
      DisplayMetrics screenDisplayMetrics = DisplayMetricsHolder.getScreenDisplayMetrics();
      constants.put(
          "Dimensions",
          MapBuilder.of(
              "windowPhysicalPixels",
              MapBuilder.of(
                  "width",
                  displayMetrics.widthPixels,
                  "height",
                  displayMetrics.heightPixels,
                  "scale",
                  displayMetrics.density,
                  "fontScale",
                  displayMetrics.scaledDensity,
                  "densityDpi",
                  displayMetrics.densityDpi),
          "screenPhysicalPixels",
          MapBuilder.of(
              "width",
              screenDisplayMetrics.widthPixels,
              "height",
              screenDisplayMetrics.heightPixels,
              "scale",
              screenDisplayMetrics.density,
              "fontScale",
              screenDisplayMetrics.scaledDensity,
              "densityDpi",
              screenDisplayMetrics.densityDpi)));
  
      constants.put(
          "StyleConstants",
          MapBuilder.of(
              "PointerEventsValues",
              MapBuilder.of(
                  "none",
                  PointerEvents.NONE.ordinal(),
                  "boxNone",
                  PointerEvents.BOX_NONE.ordinal(),
                  "boxOnly",
                  PointerEvents.BOX_ONLY.ordinal(),
                  "unspecified",
                  PointerEvents.AUTO.ordinal())));
  
      constants.put(
          "PopupMenu",
          MapBuilder.of(
              ACTION_DISMISSED,
              ACTION_DISMISSED,
              ACTION_ITEM_SELECTED,
              ACTION_ITEM_SELECTED));
  
      constants.put(
        "AccessibilityEventTypes",
        MapBuilder.of(
            "typeWindowStateChanged",
            AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED,
            "typeViewClicked",
            AccessibilityEvent.TYPE_VIEW_CLICKED));
  
      return constants;
    }
focal_method.class_method_signature: UIManagerModuleConstants.getConstants()
focal_method.full_signature: public static Map<String, Object> getConstants()
focal_method.identifier: getConstants
focal_method.invocations: put of of ordinal ordinal getWindowDisplayMetrics getScreenDisplayMetrics put of of of put of of ordinal ordinal ordinal ordinal put of put of
focal_method.modifiers: public static
focal_method.parameters: ()
focal_method.return: Map<String, Object>
focal_method.signature: Map<String, Object> getConstants()