com.noenv.wiremongo.mapping.index.ListIndexes Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vertx-wiremongo Show documentation
Show all versions of vertx-wiremongo Show documentation
Lightweight mongo mocking for Vert.x
package com.noenv.wiremongo.mapping.index;
import com.noenv.wiremongo.command.index.ListIndexesCommand;
import com.noenv.wiremongo.mapping.collection.WithCollection;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
public class ListIndexes extends WithCollection {
public ListIndexes() {
super("listIndexes");
}
public ListIndexes(JsonObject json) {
super(json);
}
@Override
public ListIndexes returns(final JsonArray response) {
return stub(c -> null == response ? null : response.copy());
}
@Override
protected JsonArray parseResponse(Object jsonValue) {
return (JsonArray) jsonValue;
}
}