Package com.pardot.rhombus

Examples of com.pardot.rhombus.ConnectionManager.teardown()


        assertEquals(indexedExpected2, indexedResults);

        // Clean up the SSTable directories after ourselves
        FileUtils.deleteRecursive(new File(keyspaceName));

    cm.teardown();
    }

    @Test
    public void testInsertingSomeNullValuesInSchema_simple() throws Exception {
        logger.debug("Starting testInsertingAllNonNullValuesInSchema");
View Full Code Here


        assertEquals(indexedExpected2, indexedResults);

        // Clean up the SSTable directories after ourselves
        FileUtils.deleteRecursive(new File(keyspaceName));

    cm.teardown();
    }

    @Test
    public void testInsertingNullValuesForIndex() throws Exception {
        logger.debug("Starting testInsertingAllNonNullValuesInSchema");
View Full Code Here

        assertEquals(indexedExpected1, indexedResults);

        // Clean up the SSTable directories after ourselves
        FileUtils.deleteRecursive(new File(keyspaceName));

    cm.teardown();
    }

    @Test
    public void testWithNonUuidIdForObject() throws Exception {
        logger.debug("Starting testWithNonUuidIdForObject");
View Full Code Here

        }

        // Clean up the SSTable directories after ourselves
        FileUtils.deleteRecursive(new File(keyspaceName));

    cm.teardown();
    }
}
View Full Code Here

    assertEquals(10, next10.size());
    for(Map<String, Object> value : next10) {
      assertFalse(valuesContainsId(first10, value.get("id")));
    }

    cm.teardown();
  }

  private boolean valuesContainsId(List<Map<String, Object>> values, Object id) {
    for(Map<String, Object> object : values) {
      if(id.equals(object.get("id"))) {
View Full Code Here

    logger.info("======================");
    logger.info("Retrieved count of " + count);
    logger.info("======================");
    assertEquals(numberOfObjects,count);

    cm.teardown();
  }

}
View Full Code Here

    assertEquals(staticTableObject.get("data1"),indexObjects.get(0).get("data1"));
    assertEquals(100L,indexObjects.get(0).get("foreignid"));
    assertEquals(101,indexObjects.get(0).get("type"));
    assertEquals(103,indexObjects.get(0).get("filtered"));

    cm.teardown();
  }



View Full Code Here

    assertEquals(4, up.getUpdatesThatHappenedWithinTimeframe(900000L).size()); //90 milliseconds

    //Test that we can see all 5 diffs when we search for those happening within 9 seconds of each other
    assertEquals(5, up.getUpdatesThatHappenedWithinTimeframe(900000L * 1000).size()); //9 seconds

    cm.teardown();
  }


  @Test
  public void testUpdateRowLimit() throws Exception {
View Full Code Here

    // Test row examine limit
    UpdateProcessor up = new UpdateProcessor(om);
    assertEquals(1, up.getUpdatesThatHappenedWithinTimeframe(900000L, 1).size());
    assertEquals(2, up.getUpdatesThatHappenedWithinTimeframe(900000L, 2).size());

    cm.teardown();
  }

  @Test
  public void testUpdateProcessorWithNullUpdateData() throws Exception {
    logger.debug("Starting testObjectMapper");
View Full Code Here

    assertEquals(null,indexObjects.get(0).get("instance"));
    assertEquals(77L,indexObjects.get(0).get("foreignid"));
    assertEquals(101,indexObjects.get(0).get("type"));
    assertEquals(103,indexObjects.get(0).get("filtered"));

    cm.teardown();
  }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.