@Test public void getAnswer_whenPromptAnswerDoesNotHaveAnswer_returnsNull() { assertThat(createWidget(promptWithAnswer(null)).getAnswer(), nullValue()); }
@Override public IAnswerData getAnswer() { return getFormEntryPrompt().getAnswerValue() == null ? null : new StringData(getFormEntryPrompt().getAnswerText()); }
UrlWidget extends QuestionWidget { @Override public IAnswerData getAnswer() { return getFormEntryPrompt().getAnswerValue() == null ? null : new StringData(getFormEntryPrompt().getAnswerText()); } }
UrlWidget extends QuestionWidget { @Override public IAnswerData getAnswer() { return getFormEntryPrompt().getAnswerValue() == null ? null : new StringData(getFormEntryPrompt().getAnswerText()); } UrlWidget(Context context, QuestionDetails questionDetails, CustomTabHelper customTabHelper); }
UrlWidget extends QuestionWidget { @Override public IAnswerData getAnswer() { return getFormEntryPrompt().getAnswerValue() == null ? null : new StringData(getFormEntryPrompt().getAnswerText()); } UrlWidget(Context context, QuestionDetails questionDetails, CustomTabHelper customTabHelper); @Override void clearAnswer(); @Override IAnswerData getAnswer(); @Override void setOnLongClickListener(OnLongClickListener l); @Override void cancelLongPress(); void onButtonClick(); }
UrlWidget extends QuestionWidget { @Override public IAnswerData getAnswer() { return getFormEntryPrompt().getAnswerValue() == null ? null : new StringData(getFormEntryPrompt().getAnswerText()); } UrlWidget(Context context, QuestionDetails questionDetails, CustomTabHelper customTabHelper); @Override void clearAnswer(); @Override IAnswerData getAnswer(); @Override void setOnLongClickListener(OnLongClickListener l); @Override void cancelLongPress(); void onButtonClick();  }