Updating to ScalaTest 3.0.0 and ScalaCheck 1.13.2

This commit is contained in:
Endre Sándor Varga 2016-08-03 14:06:57 +02:00
parent 0ed4a2aae9
commit 5e830323f6
27 changed files with 213 additions and 201 deletions

View file

@ -767,7 +767,7 @@ public class SourceTest extends StreamTest {
try {
Source.maybe().initialTimeout(Duration.create(1, "second")).runWith(Sink.head(), materializer)
.toCompletableFuture().get(3, TimeUnit.SECONDS);
fail("A TimeoutException was expected");
org.junit.Assert.fail("A TimeoutException was expected");
} catch (ExecutionException e) {
throw e.getCause();
}
@ -782,7 +782,7 @@ public class SourceTest extends StreamTest {
try {
Source.maybe().completionTimeout(Duration.create(1, "second")).runWith(Sink.head(), materializer)
.toCompletableFuture().get(3, TimeUnit.SECONDS);
fail("A TimeoutException was expected");
org.junit.Assert.fail("A TimeoutException was expected");
} catch (ExecutionException e) {
throw e.getCause();
}
@ -797,7 +797,7 @@ public class SourceTest extends StreamTest {
try {
Source.maybe().idleTimeout(Duration.create(1, "second")).runWith(Sink.head(), materializer)
.toCompletableFuture().get(3, TimeUnit.SECONDS);
fail("A TimeoutException was expected");
org.junit.Assert.fail("A TimeoutException was expected");
} catch (ExecutionException e) {
throw e.getCause();
}