DeleteFeatureLiveCommandImpl extends AbstractModifyLiveCommand<DeleteFeatureLiveCommand, DeleteFeatureLiveCommandAnswerBuilder> implements DeleteFeatureLiveCommand { @Nonnull public static DeleteFeatureLiveCommandImpl of(final Command<?> command) { return new DeleteFeatureLiveCommandImpl((DeleteFeature) command); } private  DeleteFeatureLiveCommandImpl(final DeleteFeature command); @Nonnull static DeleteFeatureLiveCommandImpl of(final Command<?> command); @Override String getFeatureId(); @Override Category getCategory(); @Override DeleteFeatureLiveCommand setDittoHeaders(final DittoHeaders dittoHeaders); @Override boolean changesAuthorization(); @Nonnull @Override DeleteFeatureLiveCommandAnswerBuilder answer(); @Nonnull @Override String toString();  }
@SuppressWarnings("ConstantConditions") @Test public void tryToGetDeleteFeatureLiveCommandForNull() { assertThatExceptionOfType(NullPointerException.class) .isThrownBy(() -> DeleteFeatureLiveCommandImpl.of(null)) .withMessage(MessageFormat.format("The {0} must not be null!", "command")) .withNoCause(); }
@Test public void tryToGetDeleteFeatureLiveCommandForCreateFeatureCommand() { final Command<?> commandMock = Mockito.mock(Command.class); assertThatExceptionOfType(ClassCastException.class) .isThrownBy(() -> DeleteFeatureLiveCommandImpl.of(commandMock)) .withMessageContaining(DeleteFeature.class.getName()) .withNoCause(); }