DATACASS-287 - Polish.

Original pull request: #63.
This commit is contained in:
John Blum
2016-06-03 14:41:06 -07:00
committed by Mark Paluch
parent 23b688a5eb
commit d311327b43
2 changed files with 5 additions and 4 deletions

View File

@@ -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;
}
}

View File

@@ -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();
}