@Test public void testExtractProperties() { PromiseActorRef ref = createActorRef(); Map<String, Object> result = PromiseActorRefPropertyExtractor.INSTANCE.extractProperties(ref); assertEquals("not the expected result", Collections.singletonMap("local", Boolean.TRUE), result); }
public Map<String, Object> extractProperties(ActorRef actorRef) { PromiseActorRef ref = (PromiseActorRef) actorRef; return Collections.<String, Object>singletonMap("local", Boolean.valueOf(ref.isLocal())); }
PromiseActorRefPropertyExtractor implements ActorRefPropertyExtractor { public Map<String, Object> extractProperties(ActorRef actorRef) { PromiseActorRef ref = (PromiseActorRef) actorRef; return Collections.<String, Object>singletonMap("local", Boolean.valueOf(ref.isLocal())); } }
PromiseActorRefPropertyExtractor implements ActorRefPropertyExtractor { public Map<String, Object> extractProperties(ActorRef actorRef) { PromiseActorRef ref = (PromiseActorRef) actorRef; return Collections.<String, Object>singletonMap("local", Boolean.valueOf(ref.isLocal())); } private  PromiseActorRefPropertyExtractor(); }
PromiseActorRefPropertyExtractor implements ActorRefPropertyExtractor { public Map<String, Object> extractProperties(ActorRef actorRef) { PromiseActorRef ref = (PromiseActorRef) actorRef; return Collections.<String, Object>singletonMap("local", Boolean.valueOf(ref.isLocal())); } private  PromiseActorRefPropertyExtractor(); Map<String, Object> extractProperties(ActorRef actorRef); }
PromiseActorRefPropertyExtractor implements ActorRefPropertyExtractor { public Map<String, Object> extractProperties(ActorRef actorRef) { PromiseActorRef ref = (PromiseActorRef) actorRef; return Collections.<String, Object>singletonMap("local", Boolean.valueOf(ref.isLocal())); } private  PromiseActorRefPropertyExtractor(); Map<String, Object> extractProperties(ActorRef actorRef); static final PromiseActorRefPropertyExtractor INSTANCE; }