Remove assertions that belong in other tests

This commit is contained in:
Paul Campbell 2018-06-13 18:08:49 +01:00
parent 02b5ba34bc
commit b816f235af

View file

@ -213,7 +213,7 @@ class GitDBTest implements WithAssertions {
// When putting a key/value pair then a GitDbBranch is returned // When putting a key/value pair then a GitDbBranch is returned
@Test @Test
void putValue_thenReturnUpdatedGitDBBranch() throws IOException, ClassNotFoundException { void putValue_thenReturnUpdatedGitDBBranch() throws IOException {
//given //given
final GitDBBranch originalBranch = gitDBBranch(); final GitDBBranch originalBranch = gitDBBranch();
//when //when
@ -221,9 +221,6 @@ class GitDBTest implements WithAssertions {
//then //then
assertThat(updatedBranch).isNotNull(); assertThat(updatedBranch).isNotNull();
assertThat(updatedBranch).isNotSameAs(originalBranch); assertThat(updatedBranch).isNotSameAs(originalBranch);
final Optional<String> optional = updatedBranch.get("key-name");
assertThat(optional).contains("value");
//assertThat(originalBranch.get("key", String.class)).isEmpty();
} }
// When getting a key that does exist then the value is returned inside an Optional // When getting a key that does exist then the value is returned inside an Optional