MetadataNodeEntityAdapter extends IterableEntityAdapter<T> { Iterable<T> browseByQuery(final ODatabaseDocumentTx db, @Nullable final String whereClause, @Nullable final Map<String, Object> parameters, @Nullable final Iterable<Bucket> buckets, @Nullable final String querySuffix) { return browseByQuery(db, whereClause, parameters, buckets, querySuffix, false); } MetadataNodeEntityAdapter(final String typeName, final BucketEntityAdapter bucketEntityAdapter);  static final String P_ATTRIBUTES; static final String P_BUCKET; static final String P_FORMAT; static final String P_NAME; }
@Test public void emptyBucketsBrowseByQuery() throws Exception { buckets.clear(); try (ODatabaseDocumentTx db = database.getInstance().connect()) { assertThat(underTest.browseByQuery(db, null, null, buckets, null), is(emptyIterable())); } }