Issue #2525 - Clean up SharedBlockingCallback.

Improved tests.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2018-05-14 12:11:10 +02:00
parent a719c29b40
commit b4f2e6ddea
1 changed files with 1 additions and 2 deletions

View File

@ -32,7 +32,6 @@ import org.hamcrest.Matchers;
import org.junit.Assert;
import org.junit.Test;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.instanceOf;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.Matchers.sameInstance;
@ -242,7 +241,7 @@ public class SharedBlockingCallbackTest
try (Blocker blocker=sbcb.acquire())
{
assertThat(blocker,not(equalTo(b0)));
assertThat(blocker,not(sameInstance(b0)));
b0.succeeded();
blocker.succeeded();
}