@Test(groups = {"acceptance"}) public void createAndListDb() throws RqlDriverException { SecureRandom random = new SecureRandom(); String database = new BigInteger(130, random).toString(32); RqlConnection r = RqlConnection.connect("localhost", 28015); RqlCursor cursor = r.run(r.db_create(database)); RqlObject obj = cursor.next(); assert Double.valueOf(1.0).equals(obj.getAs("created")) : "Database was not created successfully "; cursor = r.run(r.db_list()); obj = cursor.next(); boolean found = false; for (Object o : obj.getList()) { if (database.equals(o)) { found = true; break; } } assert found == true : "Database was not able to be listed"; cursor = r.run(r.db_drop(database)); obj = cursor.next(); assert Double.valueOf(1.0).equals(obj.getAs("dropped")) : "Database was not dropped successfully "; r.close(); }