2728293031323334353637
JSONObject slice = new JSONObject(); slice.put("FIRST_NAME", "John"); slice.put("LAST_NAME", "Smith"); try { // CLEANUP FROM BEFORE dataService.dropKeyspace(KEYSPACE); } catch (Exception e) { } // CREATE KEYSPACE dataService.addKeyspace(KEYSPACE);
6768697071727374757677
threw = true; } assertTrue("Expected exception when accessing dropped column family.", threw); // DROP KEY SPACE dataService.dropKeyspace(KEYSPACE); boolean threw1 = false; try { json = dataService.getSlice(KEYSPACE, COLUMN_FAMILY, "TEST_SLICE", ConsistencyLevel.ONE); } catch (InvalidRequestException ire) { threw1 = true;