!per #17755 removes the saved callback in plugins and adds receive
This commit is contained in:
parent
541ac83b10
commit
2a5161ff6f
16 changed files with 238 additions and 141 deletions
|
|
@ -8,8 +8,8 @@ import akka.event.Logging;
|
|||
import akka.event.Logging.LoggerInitialized;
|
||||
import akka.japi.Creator;
|
||||
import akka.japi.Pair;
|
||||
import akka.japi.Util;
|
||||
import akka.japi.tuple.Tuple22;
|
||||
import akka.japi.tuple.Tuple3;
|
||||
import akka.japi.tuple.Tuple4;
|
||||
import akka.routing.GetRoutees;
|
||||
import akka.routing.FromConfig;
|
||||
|
|
@ -20,6 +20,10 @@ import akka.testkit.TestProbe;
|
|||
|
||||
import org.junit.ClassRule;
|
||||
import org.junit.Test;
|
||||
import scala.Option;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
public class JavaAPI {
|
||||
|
|
@ -132,6 +136,15 @@ public class JavaAPI {
|
|||
final Tuple4<Integer, String, Integer, Long> t4 = Tuple4.create(1, "2", 3, 4L);
|
||||
Tuple22.create(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void mustBeAbleToCreateOptionFromOptional() {
|
||||
Option<Object> empty = Util.option(Optional.ofNullable(null));
|
||||
assertTrue(empty.isEmpty());
|
||||
|
||||
Option<String> full = Util.option(Optional.ofNullable("hello"));
|
||||
assertTrue(full.isDefined());
|
||||
}
|
||||
|
||||
public static class ActorWithConstructorParams extends UntypedActor {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue