use of org.eclipse.jetty.util.ConcurrentArrayQueue in project searchcode-server by boyter.
the class CodeIndexerTest method testIndexDocumentsEmptyIssue.
// TODO fix the assert rather then programming by exception
public void testIndexDocumentsEmptyIssue() {
try {
CodeIndexDocument cid = new CodeIndexDocument("repoLocationRepoNameLocationFilename", "", "fileName", "fileLocation", "fileLocationFilename", "md5hash", "languageName", 0, null, "repoRemoteLocation", "codeOwner");
Queue queue = new ConcurrentArrayQueue<CodeIndexDocument>();
queue.add(cid);
Singleton.getCodeIndexer().indexDocuments(queue);
} catch (Exception ex) {
assertTrue(false);
}
}
Aggregations