Skip to content

Commit

Permalink
add test Solr
Browse files Browse the repository at this point in the history
  • Loading branch information
otaviojava committed Jul 2, 2019
1 parent d16981d commit 12588aa
Showing 1 changed file with 16 additions and 0 deletions.
Expand Up @@ -372,6 +372,22 @@ public void shouldExecuteNativeQueryParams() {
assertEquals(1, entitiesFound.size());
}

@Test
public void shouldExecuteNativeQueryParamsReplaceAll() {
entityManager.insert(getEntitiesWithValues());
DocumentDeleteQuery deleteQuery = delete().from(COLLECTION_NAME).build();
entityManager.delete(deleteQuery);
entityManager.insert(getEntitiesWithValues());

Map<String, Object> params = new HashMap<>();
params.put("age", 22);

List<DocumentEntity> entitiesFound = entityManager.solr("age:@age AND age:@age"
, params);
assertEquals(1, entitiesFound.size());
}


@Test
public void shouldFindAll() {
entityManager.insert(getEntity());
Expand Down

0 comments on commit 12588aa

Please sign in to comment.