CountThings extends AbstractCommand<CountThings> implements ThingSearchQueryCommand<CountThings> { public static CountThings fromJson(final String jsonString, final DittoHeaders dittoHeaders) { return fromJson(JsonFactory.newObject(jsonString), dittoHeaders); } private  CountThings(final DittoHeaders dittoHeaders, @Nullable final String filter,
            @Nullable final Collection<String> namespaces); static CountThings of(@Nullable final String filter, @Nullable final Set<String> namespaces,
            final DittoHeaders dittoHeaders); static CountThings of(final DittoHeaders dittoHeaders); static CountThings fromJson(final String jsonString, final DittoHeaders dittoHeaders); static CountThings fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders); @Override Optional<String> getFilter(); @Override Optional<Set<String>> getNamespaces(); @Override CountThings setNamespaces(@Nullable final Collection<String> namespaces); @Override CountThings setDittoHeaders(final DittoHeaders dittoHeaders); @Override boolean equals(@Nullable final Object o); @Override int hashCode(); @Override String toString(); static final String NAME; static final String TYPE; }
@Test public void fromJsonWithAllFieldsSetV1() { assertAllFieldsSet(CountThings.fromJson(JSON_ALL_FIELDS_V1, DittoHeaders.empty())); }
@Test public void fromJsonWithAllFieldsSetV2() { assertAllFieldsSet(CountThings.fromJson(JSON_ALL_FIELDS_V2, DittoHeaders.empty())); }
@Test public void fromJsonWithOnlyRequiredFieldsSetV1() { assertMinimal(CountThings.fromJson(JSON_MINIMAL_V1, DittoHeaders.empty())); }
@Test public void fromJsonWithOnlyRequiredFieldsSetV2() { assertMinimal(CountThings.fromJson(JSON_MINIMAL_V2, DittoHeaders.empty())); }