@Test public void printOn() { GsonMedia gsonMedia = new GsonMedia(); defaultCommand.printOn(gsonMedia); assertEquals("{\"name\":\"commandName\"}", gsonMedia.toString()); }
@Override public void printOn(Media media) { media.with("name", command.getCommand()); }
DefaultCommand implements ComponentCommand { @Override public void printOn(Media media) { media.with("name", command.getCommand()); } }
DefaultCommand implements ComponentCommand { @Override public void printOn(Media media) { media.with("name", command.getCommand()); } DefaultCommand(CommandRegistrationCache.RegistrationEntry command, Set<CommandHandler> commandHandlers); }
DefaultCommand implements ComponentCommand { @Override public void printOn(Media media) { media.with("name", command.getCommand()); } DefaultCommand(CommandRegistrationCache.RegistrationEntry command, Set<CommandHandler> commandHandlers); @Override Boolean belongsToComponent(String component); @Override boolean belongsToContext(String context); @Override void printOn(Media media); }
DefaultCommand implements ComponentCommand { @Override public void printOn(Media media) { media.with("name", command.getCommand()); } DefaultCommand(CommandRegistrationCache.RegistrationEntry command, Set<CommandHandler> commandHandlers); @Override Boolean belongsToComponent(String component); @Override boolean belongsToContext(String context); @Override void printOn(Media media);  }