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