Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Nov 6, 2015
1 parent b5e69b5 commit 88dd777
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -103,7 +103,7 @@ public void testCreateRequest() {
assertThat(request.getLocale().getLocaleId())
.isEqualTo(locale.getLocaleId());
assertThat(request.getRequest().getRequester()).isEqualTo(requester);
assertThat(request.getRequest().getState()).isEqualTo(null);
assertThat(request.getRequest().getState()).isEqualTo(RequestState.NEW);

assertThat(service.doesLanguageRequestExist(requester, locale)).isTrue();
}
Expand Down Expand Up @@ -151,7 +151,6 @@ public void testUpdateLanguageRequest() {
.before(requests.get(1).getValidFrom())).isTrue();

assertThat(requests).extracting("state")
.contains(null, RequestState.ACCEPTED);
assertThat(requests).extracting("validTo").doesNotContainNull();
.contains(RequestState.NEW, RequestState.ACCEPTED);
}
}

0 comments on commit 88dd777

Please sign in to comment.