@Test public void authenticateInvalidInvalidUsername() { new JavaTestKit(system) { { final Props props = Authenticator.props(manager); final ActorRef subject = system.actorOf(props); final AuthenticationRequest req = new AuthenticationRequest(new Credentials("unknown", "test")); subject.tell(req, getRef()); expectMsgClass(duration("1 second"), InvalidCredentialsError.class); } }; }
public static Props props(EntityManager entityManager) { return Props.create(Authenticator.class, () -> new Authenticator(entityManager)); }
Authenticator extends AbstractActor { public static Props props(EntityManager entityManager) { return Props.create(Authenticator.class, () -> new Authenticator(entityManager)); } }
Authenticator extends AbstractActor { public static Props props(EntityManager entityManager) { return Props.create(Authenticator.class, () -> new Authenticator(entityManager)); } private  Authenticator(EntityManager entityManager); }
Authenticator extends AbstractActor { public static Props props(EntityManager entityManager) { return Props.create(Authenticator.class, () -> new Authenticator(entityManager)); } private  Authenticator(EntityManager entityManager); @Override PartialFunction<Object, BoxedUnit> receive(); static Props props(EntityManager entityManager); }
Authenticator extends AbstractActor { public static Props props(EntityManager entityManager) { return Props.create(Authenticator.class, () -> new Authenticator(entityManager)); } private  Authenticator(EntityManager entityManager); @Override PartialFunction<Object, BoxedUnit> receive(); static Props props(EntityManager entityManager);  }