Skip to content

Commit

Permalink
Refact remove method list
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Furlaneto <lucasfurlaneto.s@gmail.com>
  • Loading branch information
furlaneto committed Feb 8, 2018
1 parent 4b7a5e5 commit 371643e
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -23,6 +23,9 @@
import java.util.Arrays;
import java.util.List;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.not;
import static org.junit.jupiter.api.Assertions.*;

public class RedisListStringTest {
Expand Down Expand Up @@ -73,6 +76,11 @@ public void shouldSetList() {
@Test
public void shouldRemoveList() {
fruits.add("banana");
fruits.add("orange");
fruits.add("watermellon");

fruits.remove("banana");
assertThat(fruits, not(contains("banana")));
}

@Test
Expand Down

0 comments on commit 371643e

Please sign in to comment.