test_class.declarator: TEST_CONTENT = "test"
test_class.modifier: private static final
test_class.original_string: private static final String TEST_CONTENT = "test";
test_class.type: String
test_class.var_name: TEST_CONTENT
test_class.declarator: mClipboardModule
test_class.modifier: private
test_class.original_string: private ClipboardModule mClipboardModule;
test_class.type: ClipboardModule
test_class.var_name: mClipboardModule
test_class.declarator: mClipboardManager
test_class.modifier: private
test_class.original_string: private ClipboardManager mClipboardManager;
test_class.type: ClipboardManager
test_class.var_name: mClipboardManager
test_class.file: node_modules/react-native/ReactAndroid/src/test/java/com/facebook/react/modules/clipboard/ClipboardModuleTest.java
test_class.identifier: ClipboardModuleTest
test_case.body: @Test
    public void testSetString() {
      mClipboardModule.setString(TEST_CONTENT);
      assertTrue(mClipboardManager.getText().equals(TEST_CONTENT));
  
      mClipboardModule.setString(null);
      assertFalse(mClipboardManager.hasText());
  
      mClipboardModule.setString("");
      assertFalse(mClipboardManager.hasText());
  
      mClipboardModule.setString(" ");
      assertTrue(mClipboardManager.hasText());
    }
test_case.class_method_signature: ClipboardModuleTest.testSetString()
test_case.full_signature: @Test public void testSetString()
test_case.identifier: testSetString
test_case.invocations: setString assertTrue equals getText setString assertFalse hasText setString assertFalse hasText setString assertTrue hasText
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSetString()
focal_class.file: node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/ClipboardModule.java
focal_class.identifier: ClipboardModule
focal_class.class_method_signature: ClipboardModule.ClipboardModule(ReactApplicationContext reactContext)
focal_class.full_signature: public  ClipboardModule(ReactApplicationContext reactContext)
focal_class.identifier: ClipboardModule
focal_class.modifiers: public
focal_class.parameters: (ReactApplicationContext reactContext)
focal_class.signature:  ClipboardModule(ReactApplicationContext reactContext)
focal_class.class_method_signature: ClipboardModule.getName()
focal_class.full_signature: @Override public String getName()
focal_class.identifier: getName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: ClipboardModule.getClipboardService()
focal_class.full_signature: private ClipboardManager getClipboardService()
focal_class.identifier: getClipboardService
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: ClipboardManager
focal_class.signature: ClipboardManager getClipboardService()
focal_class.class_method_signature: ClipboardModule.getString(Promise promise)
focal_class.full_signature: @ReactMethod public void getString(Promise promise)
focal_class.identifier: getString
focal_class.modifiers: @ReactMethod public
focal_class.parameters: (Promise promise)
focal_class.return: void
focal_class.signature: void getString(Promise promise)
focal_class.class_method_signature: ClipboardModule.setString(String text)
focal_class.full_signature: @SuppressLint("DeprecatedMethod") @ReactMethod public void setString(String text)
focal_class.identifier: setString
focal_class.modifiers: @SuppressLint("DeprecatedMethod") @ReactMethod public
focal_class.parameters: (String text)
focal_class.return: void
focal_class.signature: void setString(String text)
focal_class.superclass: extends ReactContextBaseJavaModule
focal_method.body: @SuppressLint("DeprecatedMethod")
    @ReactMethod
    public void setString(String text) {
      ReactApplicationContext reactContext = getReactApplicationContext();
      if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
        ClipData clipdata = ClipData.newPlainText(null, text);
        ClipboardManager clipboard = getClipboardService();
        clipboard.setPrimaryClip(clipdata);
      } else {
        ClipboardManager clipboard = getClipboardService();
        clipboard.setText(text);
      }
    }
focal_method.class_method_signature: ClipboardModule.setString(String text)
focal_method.full_signature: @SuppressLint("DeprecatedMethod") @ReactMethod public void setString(String text)
focal_method.identifier: setString
focal_method.invocations: getReactApplicationContext newPlainText getClipboardService setPrimaryClip getClipboardService setText
focal_method.modifiers: @SuppressLint("DeprecatedMethod") @ReactMethod public
focal_method.parameters: (String text)
focal_method.return: void
focal_method.signature: void setString(String text)