@Test public void whenPromptHasAnswer_checkboxIsChecked() { TriggerWidget widget = createWidget(promptWithAnswer(new StringData("OK"))); assertThat(widget.getCheckBox().isChecked(), equalTo(true)); }
public CheckBox getCheckBox() { return triggerButton; }
TriggerWidget extends QuestionWidget { public CheckBox getCheckBox() { return triggerButton; } }
TriggerWidget extends QuestionWidget { public CheckBox getCheckBox() { return triggerButton; } TriggerWidget(Context context, QuestionDetails prompt); }
TriggerWidget extends QuestionWidget { public CheckBox getCheckBox() { return triggerButton; } TriggerWidget(Context context, QuestionDetails prompt); @Override void clearAnswer(); @Override IAnswerData getAnswer(); @Override void setOnLongClickListener(OnLongClickListener l); @Override void cancelLongPress(); CheckBox getCheckBox(); }
TriggerWidget extends QuestionWidget { public CheckBox getCheckBox() { return triggerButton; } TriggerWidget(Context context, QuestionDetails prompt); @Override void clearAnswer(); @Override IAnswerData getAnswer(); @Override void setOnLongClickListener(OnLongClickListener l); @Override void cancelLongPress(); CheckBox getCheckBox();  }