You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 line
559 B

  1. package commands;
  2. import com.fasterxml.jackson.databind.node.ObjectNode;
  3. public interface DummyTell {
  4. /**
  5. * This is a method that can be used to replace the normal tell logic
  6. * when sending commands to avoid issues when building unit tests where
  7. * ActorRef is null
  8. *
  9. * If writing a unit test you can add a class that implements this interface
  10. * and set BasicCommands.altTell = <your class> to avoid calling ActorRef.tell
  11. * and call altTell.tell instead.
  12. * @param message
  13. */
  14. public void tell(ObjectNode message);
  15. }