= str - #15621 - Moving FlowMaterializer argument to the end of all Flow and Duct methods which uses it.

This commit is contained in:
Viktor Klang 2014-07-17 18:11:12 +02:00
parent 2ccf028a94
commit bb8ab0a925
33 changed files with 106 additions and 109 deletions

View file

@ -355,15 +355,12 @@ public class FlowTest {
public void mustBeAbleToUseOnCompleteSuccess() {
final JavaTestKit probe = new JavaTestKit(system);
final java.lang.Iterable<String> input = Arrays.asList("A", "B", "C");
Flow.create(input).onComplete(materializer, new OnCompleteCallback() {
Flow.create(input).onComplete(new OnCompleteCallback() {
@Override
public void onComplete(Throwable e) {
if (e == null)
probe.getRef().tell("done", ActorRef.noSender());
else
probe.getRef().tell(e, ActorRef.noSender());
probe.getRef().tell( (e == null) ? "done" : e, ActorRef.noSender());
}
});
}, materializer);
probe.expectMsgEquals("done");
}
@ -376,7 +373,7 @@ public class FlowTest {
public String apply(String arg0) throws Exception {
throw new RuntimeException("simulated err");
}
}).onComplete(materializer, new OnCompleteCallback() {
}).onComplete(new OnCompleteCallback() {
@Override
public void onComplete(Throwable e) {
if (e == null)
@ -384,7 +381,7 @@ public class FlowTest {
else
probe.getRef().tell(e.getMessage(), ActorRef.noSender());
}
});
}, materializer);
probe.expectMsgEquals("simulated err");
}