Skip to content

Commit

Permalink
fix the failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Anastasiia Smirnova committed Jan 24, 2020
1 parent 46c46ab commit 1f1a5a9
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
import org.springframework.data.aerospike.SampleClasses.DocumentWithCompositeKey;
import reactor.test.StepVerifier;

import java.util.List;

import static java.util.Arrays.asList;
import static org.assertj.core.api.Assertions.assertThat;

public class ReactiveAerospikeTemplateCompositeKeyTests extends BaseReactiveIntegrationTests {

Expand All @@ -33,9 +36,10 @@ public void findByIds() {
DocumentWithCompositeKey document2 = new DocumentWithCompositeKey(new CompositeKey(nextId(), 999));
reactiveTemplate.save(document2).block();

StepVerifier.create(reactiveTemplate.findByIds(asList(document.getId(), document2.getId()), DocumentWithCompositeKey.class))
.expectNext(document, document2)
.verifyComplete();
List<DocumentWithCompositeKey> actual = reactiveTemplate.findByIds(asList(document.getId(), document2.getId()), DocumentWithCompositeKey.class)
.collectList().block();

assertThat(actual).containsOnly(document, document2);
}

@Test
Expand Down

0 comments on commit 1f1a5a9

Please sign in to comment.