DeleteFeaturePropertyResponse extends AbstractCommandResponse<DeleteFeaturePropertyResponse> implements ThingModifyCommandResponse<DeleteFeaturePropertyResponse> { @Deprecated public static DeleteFeaturePropertyResponse of(final String thingId, final String featureId, final JsonPointer propertyPointer, final DittoHeaders dittoHeaders) { return of(ThingId.of(thingId), featureId, propertyPointer, dittoHeaders); } private  DeleteFeaturePropertyResponse(final ThingId thingId, final String featureId,
            final JsonPointer propertyPointer,
            final DittoHeaders dittoHeaders); @Deprecated static DeleteFeaturePropertyResponse of(final String thingId, final String featureId,
            final JsonPointer propertyPointer, final DittoHeaders dittoHeaders); static DeleteFeaturePropertyResponse of(final ThingId thingId, final String featureId,
            final JsonPointer propertyPointer, final DittoHeaders dittoHeaders); static DeleteFeaturePropertyResponse fromJson(final String jsonString, final DittoHeaders dittoHeaders); static DeleteFeaturePropertyResponse fromJson(final JsonObject jsonObject,
            final DittoHeaders dittoHeaders); @Override ThingId getThingEntityId(); String getFeatureId(); JsonPointer getPropertyPointer(); @Override JsonPointer getResourcePath(); @Override DeleteFeaturePropertyResponse setDittoHeaders(final DittoHeaders dittoHeaders); @Override boolean equals(@Nullable final Object o); @Override int hashCode(); @Override String toString(); static final String TYPE; }
@Test public void toJsonReturnsExpected() { final DeleteFeaturePropertyResponse underTest = DeleteFeaturePropertyResponse.of(TestConstants.Thing.THING_ID, TestConstants.Feature.FLUX_CAPACITOR_ID, TestConstants.Feature.FLUX_CAPACITOR_PROPERTY_POINTER, DittoHeaders.empty()); final JsonObject actualJson = underTest.toJson(FieldType.regularOrSpecial()); assertThat(actualJson).isEqualTo(KNOWN_JSON); }
@Test(expected = JsonKeyInvalidException.class) public void createInstanceWithInvalidArguments() { DeleteFeaturePropertyResponse.of(TestConstants.Thing.THING_ID, TestConstants.Feature.FLUX_CAPACITOR_ID, INVALID_JSON_POINTER, TestConstants.EMPTY_DITTO_HEADERS); }