From b816f235af339ceede60a87845ec0a521436a392 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Wed, 13 Jun 2018 18:08:49 +0100 Subject: [PATCH] Remove assertions that belong in other tests --- src/test/java/net/kemitix/gitdb/GitDBTest.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/test/java/net/kemitix/gitdb/GitDBTest.java b/src/test/java/net/kemitix/gitdb/GitDBTest.java index df05a74..7a6c0eb 100644 --- a/src/test/java/net/kemitix/gitdb/GitDBTest.java +++ b/src/test/java/net/kemitix/gitdb/GitDBTest.java @@ -213,7 +213,7 @@ class GitDBTest implements WithAssertions { // When putting a key/value pair then a GitDbBranch is returned @Test - void putValue_thenReturnUpdatedGitDBBranch() throws IOException, ClassNotFoundException { + void putValue_thenReturnUpdatedGitDBBranch() throws IOException { //given final GitDBBranch originalBranch = gitDBBranch(); //when @@ -221,9 +221,6 @@ class GitDBTest implements WithAssertions { //then assertThat(updatedBranch).isNotNull(); assertThat(updatedBranch).isNotSameAs(originalBranch); - final Optional 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