Skip to content

Commit

Permalink
Fix test with native query
Browse files Browse the repository at this point in the history
  • Loading branch information
furlaneto committed Feb 13, 2018
1 parent 83e9043 commit 611d621
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -166,8 +166,8 @@ public void shouldFindAsyncWithNativeQuery() {
AtomicReference<List<DocumentEntity>> reference = new AtomicReference<>();
StringBuilder query = new StringBuilder().append("SELECT FROM ")
.append(COLLECTION_NAME)
.append(" WHERE name = \"Poliana\"");
entityManagerAsync.sql(query.toString(), reference::set);
.append(" WHERE name = ?");
entityManagerAsync.sql(query.toString(), reference::set, "Poliana");
await().until(reference::get, notNullValue(List.class));

assertFalse(reference.get().isEmpty());
Expand Down

0 comments on commit 611d621

Please sign in to comment.