1 package com.xtremelabs.robolectric.shadows; 2 3 import android.widget.CheckedTextView; 4 import com.xtremelabs.robolectric.internal.Implementation; 5 import com.xtremelabs.robolectric.internal.Implements; 6 7 @SuppressWarnings({"UnusedDeclaration"}) 8 @Implements(CheckedTextView.class) 9 public class ShadowCheckedTextView extends ShadowTextView { 10 11 private boolean checked; 12 13 @Implementation toggle()14 public void toggle() { 15 checked = !checked; 16 } 17 18 @Implementation isChecked()19 public boolean isChecked() { 20 return checked; 21 } 22 23 @Implementation setChecked(boolean checked)24 public void setChecked(boolean checked) { 25 this.checked = checked; 26 } 27 28 } 29