Skip to content

Commit

Permalink
Fixed error after resolving conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek2010 committed Jul 7, 2023
1 parent 952fae4 commit 12adf6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public void validate() {
try {
result = formController.validateAnswers(true);
} catch (JavaRosaException e) {
error.setValue(new NonFatal(e.getMessage()));
error.setValue(new FormError.NonFatal(e.getMessage()));
}

return result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,6 @@ public void validate_whenThereIsAnErrorValidating_setsError() throws Exception {

viewModel.validate();
scheduler.runBackground();
assertThat(viewModel.getError().getValue(), equalTo(new NonFatal("OH NO")));
assertThat(viewModel.getError().getValue(), equalTo(new FormError.NonFatal("OH NO")));
}
}

0 comments on commit 12adf6e

Please sign in to comment.