Skip to content

Commit

Permalink
Wrong assertion, test data starts with 0 #145
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
  • Loading branch information
danielkec committed Mar 30, 2022
1 parent 54dc6ee commit c769d04
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, 2021 Contributors to the Eclipse Foundation
* Copyright (c) 2020, 2022 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
Expand Down Expand Up @@ -47,7 +47,7 @@ public void testOverflow() throws InterruptedException {
// Assert all items either accepted or rejected
assertThat(bean.accepted().size() + bean.rejected().size()).isEqualTo(10);
// At least the first item should have been accepted
assertThat(bean.accepted()).contains("1");
assertThat(bean.accepted()).contains("0");
// But not everything should have been accepted
assertThat(bean.rejected()).isNotEmpty();

Expand Down

0 comments on commit c769d04

Please sign in to comment.