Merge pull request #20680 from akka/wip-ByteString.empty-patriknw

use ByteString.empty
This commit is contained in:
Patrik Nordwall 2016-06-02 14:37:03 +02:00
commit 03eaacdbbb
9 changed files with 17 additions and 18 deletions

View file

@ -16,7 +16,6 @@ public class CustomRouteTestBase {
ActorRef responder = system.actorOf(Props.create(Responder.class), "TestResponder");
camel.context().addRoutes(new CustomRouteBuilder(responder));
//#CustomRoute
system.stop(responder);
} finally {
JavaTestKit.shutdownActorSystem(system);
}

View file

@ -29,7 +29,7 @@ public class SchedulerPatternTest extends AbstractJavaTest {
private final Cancellable tick = getContext().system().scheduler().schedule(
Duration.create(500, TimeUnit.MILLISECONDS),
Duration.create(1000, TimeUnit.MILLISECONDS),
Duration.create(1, TimeUnit.SECONDS),
getSelf(), "tick", getContext().dispatcher(), null);
//#schedule-constructor
// this variable and constructor is declared here to not show up in the docs
@ -92,7 +92,7 @@ public class SchedulerPatternTest extends AbstractJavaTest {
if (message.equals("tick")) {
// send another periodic tick after the specified delay
getContext().system().scheduler().scheduleOnce(
Duration.create(1000, TimeUnit.MILLISECONDS),
Duration.create(1, TimeUnit.SECONDS),
getSelf(), "tick", getContext().dispatcher(), null);
// do something useful here
//#schedule-receive