@Test void testGetCommandNameReturnsTheNameOfTheCommandAsSpecifiedInTheGrpcCommand() { CommandMessage<TestCommand> testCommandMessage = GenericCommandMessage.asCommandMessage(TEST_COMMAND); Command testCommand = commandSerializer.serialize(testCommandMessage, ROUTING_KEY, PRIORITY); GrpcBackedCommandMessage<TestCommand> testSubject = new GrpcBackedCommandMessage<>(testCommand, serializer); assertEquals(testCommand.getName(), testSubject.getCommandName()); }
@Override public String getCommandName() { return command.getName(); }
GrpcBackedCommandMessage implements CommandMessage<C> { @Override public String getCommandName() { return command.getName(); } }
GrpcBackedCommandMessage implements CommandMessage<C> { @Override public String getCommandName() { return command.getName(); } GrpcBackedCommandMessage(Command command, Serializer serializer); private  GrpcBackedCommandMessage(Command command,
                                     LazyDeserializingObject<C> serializedPayload,
                                     Supplier<MetaData> metaDataSupplier); }
GrpcBackedCommandMessage implements CommandMessage<C> { @Override public String getCommandName() { return command.getName(); } GrpcBackedCommandMessage(Command command, Serializer serializer); private  GrpcBackedCommandMessage(Command command,
                                     LazyDeserializingObject<C> serializedPayload,
                                     Supplier<MetaData> metaDataSupplier); @Override String getCommandName(); @Override String getIdentifier(); @Override MetaData getMetaData(); @Override C getPayload(); @Override Class<C> getPayloadType(); @Override GrpcBackedCommandMessage<C> withMetaData(Map<String, ?> metaData); @Override GrpcBackedCommandMessage<C> andMetaData(Map<String, ?> metaData); }
GrpcBackedCommandMessage implements CommandMessage<C> { @Override public String getCommandName() { return command.getName(); } GrpcBackedCommandMessage(Command command, Serializer serializer); private  GrpcBackedCommandMessage(Command command,
                                     LazyDeserializingObject<C> serializedPayload,
                                     Supplier<MetaData> metaDataSupplier); @Override String getCommandName(); @Override String getIdentifier(); @Override MetaData getMetaData(); @Override C getPayload(); @Override Class<C> getPayloadType(); @Override GrpcBackedCommandMessage<C> withMetaData(Map<String, ?> metaData); @Override GrpcBackedCommandMessage<C> andMetaData(Map<String, ?> metaData);  }