use of org.javarosa.form.api.FormEntryPrompt in project collect by opendatakit.
the class GeoPointWidgetTest method buttonClick_requestsGeoPoint_whenAnswerIsCleared.
@Test
public void buttonClick_requestsGeoPoint_whenAnswerIsCleared() {
FormEntryPrompt prompt = promptWithAnswer(answer);
GeoPointWidget widget = createWidget(prompt);
widget.clearAnswer();
widget.binding.simpleButton.performClick();
verify(geoDataRequester).requestGeoPoint(prompt, null, waitingForDataRegistry);
}
use of org.javarosa.form.api.FormEntryPrompt in project collect by opendatakit.
the class GeoPointWidgetTest method buttonClick_requestsGeoPoint.
@Test
public void buttonClick_requestsGeoPoint() {
FormEntryPrompt prompt = promptWithAnswer(answer);
GeoPointWidget widget = createWidget(prompt);
widget.binding.simpleButton.performClick();
verify(geoDataRequester).requestGeoPoint(prompt, answer.getDisplayText(), waitingForDataRegistry);
}
use of org.javarosa.form.api.FormEntryPrompt in project collect by opendatakit.
the class GeoPointMapWidgetTest method buttonClick_requestsGeoPoint_whenAnswerIsUpdated.
@Test
public void buttonClick_requestsGeoPoint_whenAnswerIsUpdated() {
FormEntryPrompt prompt = promptWithAnswer(null);
GeoPointMapWidget widget = createWidget(prompt);
widget.setData(answer);
widget.binding.simpleButton.performClick();
verify(geoDataRequester).requestGeoPoint(prompt, answer.getDisplayText(), waitingForDataRegistry);
}
use of org.javarosa.form.api.FormEntryPrompt in project collect by opendatakit.
the class GeoPointMapWidgetTest method buttonClick_requestsGeoPoint_whenAnswerIsCleared.
@Test
public void buttonClick_requestsGeoPoint_whenAnswerIsCleared() {
FormEntryPrompt prompt = promptWithAnswer(answer);
GeoPointMapWidget widget = createWidget(prompt);
widget.clearAnswer();
widget.binding.simpleButton.performClick();
verify(geoDataRequester).requestGeoPoint(prompt, null, waitingForDataRegistry);
}
use of org.javarosa.form.api.FormEntryPrompt in project collect by opendatakit.
the class GeoShapeWidgetTest method buttonClick_requestsGeoShape_whenAnswerIsUpdated.
@Test
public void buttonClick_requestsGeoShape_whenAnswerIsUpdated() {
FormEntryPrompt prompt = promptWithAnswer(null);
GeoShapeWidget widget = createWidget(prompt);
widget.setData(answer);
widget.binding.simpleButton.performClick();
verify(geoDataRequester).requestGeoShape(prompt, answer, waitingForDataRegistry);
}
Aggregations