@Test public void testToDocument_emptyDocumentVisibility() { final Document document = DocumentVisibilityAdapter.toDocument(MongoDbRdfConstants.EMPTY_DV); final Document expected = Document.parse( "{" + "documentVisibility : []" + "}" ); assertEquals(expected, document); }
public static Document toDocument(final byte[] expression) { DocumentVisibility dv; if (expression == null) { dv = MongoDbRdfConstants.EMPTY_DV; } else { dv = new DocumentVisibility(expression); } return toDocument(dv); }
DocumentVisibilityAdapter { public static Document toDocument(final byte[] expression) { DocumentVisibility dv; if (expression == null) { dv = MongoDbRdfConstants.EMPTY_DV; } else { dv = new DocumentVisibility(expression); } return toDocument(dv); } }
DocumentVisibilityAdapter { public static Document toDocument(final byte[] expression) { DocumentVisibility dv; if (expression == null) { dv = MongoDbRdfConstants.EMPTY_DV; } else { dv = new DocumentVisibility(expression); } return toDocument(dv); } private  DocumentVisibilityAdapter(); }
DocumentVisibilityAdapter { public static Document toDocument(final byte[] expression) { DocumentVisibility dv; if (expression == null) { dv = MongoDbRdfConstants.EMPTY_DV; } else { dv = new DocumentVisibility(expression); } return toDocument(dv); } private  DocumentVisibilityAdapter(); static Document toDocument(final byte[] expression); static Document toDocument(final DocumentVisibility documentVisibility); static DocumentVisibility toDocumentVisibility(final Document doc); }
DocumentVisibilityAdapter { public static Document toDocument(final byte[] expression) { DocumentVisibility dv; if (expression == null) { dv = MongoDbRdfConstants.EMPTY_DV; } else { dv = new DocumentVisibility(expression); } return toDocument(dv); } private  DocumentVisibilityAdapter(); static Document toDocument(final byte[] expression); static Document toDocument(final DocumentVisibility documentVisibility); static DocumentVisibility toDocumentVisibility(final Document doc); static final String DOCUMENT_VISIBILITY_KEY; }