Package com.pardot.rhombus

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


    //Shutdown the session
    session.close();

    //Teardown the connection manager
    cm.teardown();
  }


}
View Full Code Here


    criteria.setIndexKeys(indexValues);
    criteria.setLimit(50L);
    List<Map<String, Object>> results = om.list("object1", criteria);
    assertEquals(3, results.size());

    cm.teardown();
  }

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

    criteria.setLimit(50L);
    List<Map<String, Object>> results = om.list("object1", criteria);

    assertEquals(1, results.size());

    cm.teardown();
  }

}
View Full Code Here

    criteria.setLimit(limit);
    List<Map<String, Object>> results = om.list(objectType, criteria);

    assertEquals(insertNum, results.size());

    cm.teardown();
  }

  @Test
  public void testGetInEmptyShardList() throws Exception {
    //Build the connection manager
View Full Code Here

    criteria.setLimit(limit);
    List<Map<String, Object>> results = om.list(objectType, criteria);

    assertEquals(0, results.size());

    cm.teardown();
  }

  @Test
  public void testInsertWithIdsAndGet() throws Exception {
    //Build the connection manager
View Full Code Here

    for(UUID id : idList) {
      assertTrue(resultsContainId(results, id));
    }

    cm.teardown();
  }

  @Test
  public void testInsert2WithIdsAcrossShardsAndGet() throws Exception {
    //Build the connection manager
View Full Code Here

    for(UUID id : idList) {
      assertTrue(resultsContainId(results, id));
    }

    cm.teardown();
  }

  @Test
  public void testInsert18WithIdsAcrossShardsAndGet() throws Exception {
    //Build the connection manager
View Full Code Here

    for(UUID id : idList) {
      assertTrue(resultsContainId(results, id));
    }

    cm.teardown();
  }

  @Test
  public void testInsert18WithIdsAcrossShardsAndCount() throws Exception {
    //Build the connection manager
View Full Code Here

    criteria.setIndexKeys(indexKeys);

    long count = om.count(objectType, criteria);
    assertEquals(insertNum, count);

    cm.teardown();
  }

  @Test
  public void testInsert18WithIdsAcrossShardsAndCountWithFiltering() throws Exception {
    //Build the connection manager
View Full Code Here

    criteria.setIndexKeys(indexKeys);

    long count = om.count(objectType, criteria);
    assertEquals(insertNum, count);

    cm.teardown();
  }

  private boolean resultsContainId(List<Map<String, Object>> results, UUID id) {
    for(Map<String, Object> object : results) {
      if(id.equals(object.get("id"))) {
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.