Home | History | Annotate | Download | only in text
      1 package com.xtremelabs.robolectric.tester.android.text;
      2 
      3 import android.text.ClipboardManager;
      4 
      5 @SuppressWarnings("deprecation")
      6 public class TestClipboardManager extends ClipboardManager {
      7 
      8     private CharSequence text;
      9 
     10     public void setText(CharSequence text) {
     11         this.text = text;
     12     }
     13 
     14     public CharSequence getText() {
     15         return text;
     16     }
     17 
     18     public boolean hasText() {
     19         return text != null && text.length() > 0;
     20     }
     21 
     22 }
     23