Ejemplo n.º 1
0
 @Test(expected = RebarException.class)
 public void exWithAnnotations()
     throws RebarException, TableNotFoundException, MutationsRejectedException,
         InvalidInputException {
   assertFalse(cr.exists("bar"));
   Communication c = generateMockDocument();
   c.addToSectionSegmentations(new SingleSectionSegmenter().annotateDiff(c));
   ci.ingest(c);
   assertTrue(cr.exists(c));
 }
Ejemplo n.º 2
0
 /**
  * Test method for {@link
  * edu.jhu.hlt.rebar.accumulo.CleanIngester#isDocumentIngested(edu.jhu.hlt.concrete.Communication)}.
  *
  * @throws RebarException
  * @throws TableNotFoundException
  * @throws MutationsRejectedException
  */
 @Test
 public void testIsDocumentIngested()
     throws RebarException, TableNotFoundException, MutationsRejectedException {
   assertFalse(cr.exists("bar"));
   Communication c = generateMockDocument();
   Communication c2 = generateMockDocument();
   c.startTime = 39595830;
   c2.startTime = 395958301;
   assertFalse(cr.exists(c));
   ci.ingest(c);
   assertTrue(cr.exists(c));
   assertFalse(cr.exists("bar"));
   ci.ingest(c);
   ci.ingest(c2);
   assertTrue(cr.exists(c));
   assertTrue(cr.exists(c2));
 }