@@ -33,14 +33,16 @@ public class BookListener extends TestListener implements AsynchronousQueryListe
|
||||
private boolean done;
|
||||
|
||||
@Override
|
||||
public void onQueryComplete(ResultSetFuture rsf) {
|
||||
public void onQueryComplete(ResultSetFuture resultSetFuture) {
|
||||
|
||||
Row row;
|
||||
|
||||
try {
|
||||
row = rsf.get().one();
|
||||
row = resultSetFuture.get().one();
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException("Failed to get ResultSet from ResultSetFuture", e);
|
||||
}
|
||||
|
||||
book = new Book();
|
||||
book.setIsbn(row.getString("isbn"));
|
||||
book.setTitle(row.getString("title"));
|
||||
@@ -65,5 +67,4 @@ public class BookListener extends TestListener implements AsynchronousQueryListe
|
||||
public Book getBook() {
|
||||
return book;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ public class AsynchronousCassandraTemplateTest extends AbstractSpringDataEmbedde
|
||||
@Table
|
||||
public static class Thing {
|
||||
|
||||
public static final String uuid() {
|
||||
public static String uuid() {
|
||||
return UUID.randomUUID().toString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user