@Test public void getAnswer_whenPromptAnswerDoesNotHaveAnswer_returnsNull() { assertThat(createWidget(promptWithAnswer(null)).getAnswer(), nullValue()); }
@Override public IAnswerData getAnswer() { String answerText = binding.answerText.getText().toString(); return answerText.isEmpty() ? null : new StringData(answerText); }
BearingWidget extends QuestionWidget implements BinaryDataReceiver { @Override public IAnswerData getAnswer() { String answerText = binding.answerText.getText().toString(); return answerText.isEmpty() ? null : new StringData(answerText); } }
BearingWidget extends QuestionWidget implements BinaryDataReceiver { @Override public IAnswerData getAnswer() { String answerText = binding.answerText.getText().toString(); return answerText.isEmpty() ? null : new StringData(answerText); } BearingWidget(Context context, QuestionDetails questionDetails, WaitingForDataRegistry waitingForDataRegistry, SensorManager sensorManager); }
BearingWidget extends QuestionWidget implements BinaryDataReceiver { @Override public IAnswerData getAnswer() { String answerText = binding.answerText.getText().toString(); return answerText.isEmpty() ? null : new StringData(answerText); } BearingWidget(Context context, QuestionDetails questionDetails, WaitingForDataRegistry waitingForDataRegistry, SensorManager sensorManager); @Override void clearAnswer(); @Override IAnswerData getAnswer(); @Override void setBinaryData(Object answer); @Override void setOnLongClickListener(OnLongClickListener l); @Override void cancelLongPress(); }
BearingWidget extends QuestionWidget implements BinaryDataReceiver { @Override public IAnswerData getAnswer() { String answerText = binding.answerText.getText().toString(); return answerText.isEmpty() ? null : new StringData(answerText); } BearingWidget(Context context, QuestionDetails questionDetails, WaitingForDataRegistry waitingForDataRegistry, SensorManager sensorManager); @Override void clearAnswer(); @Override IAnswerData getAnswer(); @Override void setBinaryData(Object answer); @Override void setOnLongClickListener(OnLongClickListener l); @Override void cancelLongPress();  }