ModifyFeaturePropertyResponse extends AbstractCommandResponse<ModifyFeaturePropertyResponse> implements ThingModifyCommandResponse<ModifyFeaturePropertyResponse> { @Deprecated public static ModifyFeaturePropertyResponse modified(final String thingId, final String featureId, final JsonPointer featurePropertyPointer, final DittoHeaders dittoHeaders) { return modified(ThingId.of(thingId), featureId, featurePropertyPointer, dittoHeaders); } private  ModifyFeaturePropertyResponse(final ThingId thingId,
            final String featureId,
            final JsonPointer featurePropertyPointer,
            @Nullable final JsonValue featurePropertyValue,
            final HttpStatusCode statusCode,
            final DittoHeaders dittoHeaders); @Deprecated static ModifyFeaturePropertyResponse created(final String thingId,
            final String featureId,
            final JsonPointer featurePropertyPointer,
            final JsonValue featureValue,
            final DittoHeaders dittoHeaders); static ModifyFeaturePropertyResponse created(final ThingId thingId,
            final String featureId,
            final JsonPointer featurePropertyPointer,
            final JsonValue featureValue,
            final DittoHeaders dittoHeaders); @Deprecated static ModifyFeaturePropertyResponse modified(final String thingId, final String featureId,
            final JsonPointer featurePropertyPointer, final DittoHeaders dittoHeaders); static ModifyFeaturePropertyResponse modified(final ThingId thingId, final String featureId,
            final JsonPointer featurePropertyPointer, final DittoHeaders dittoHeaders); static ModifyFeaturePropertyResponse fromJson(final String jsonString, final DittoHeaders dittoHeaders); static ModifyFeaturePropertyResponse fromJson(final JsonObject jsonObject,
            final DittoHeaders dittoHeaders); @Override ThingId getThingEntityId(); JsonPointer getFeaturePropertyPointer(); String getFeatureId(); Optional<JsonValue> getFeaturePropertyValue(); @Override Optional<JsonValue> getEntity(final JsonSchemaVersion schemaVersion); @Override JsonPointer getResourcePath(); @Override ModifyFeaturePropertyResponse setDittoHeaders(final DittoHeaders dittoHeaders); @SuppressWarnings("squid:S1067") @Override boolean equals(@Nullable final Object o); @Override int hashCode(); @Override String toString(); static final String TYPE; }
@Test public void tryToCreateInstanceWithValidArguments() { ModifyFeaturePropertyResponse.modified(TestConstants.Thing.THING_ID, TestConstants.Feature.FLUX_CAPACITOR_ID, VALID_JSON_POINTER, TestConstants.EMPTY_DITTO_HEADERS); }
@Test(expected = JsonKeyInvalidException.class) public void tryToCreateInstanceWithInvalidArguments() { ModifyFeaturePropertyResponse.modified(TestConstants.Thing.THING_ID, TestConstants.Feature.FLUX_CAPACITOR_ID, INVALID_JSON_POINTER, TestConstants.EMPTY_DITTO_HEADERS); }