Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add match all query test #1

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions src/test/java/org/docksidestage/esflute/maihama/ProductTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,21 @@ public void test_runCluster() throws Exception {
ProductBhv productBhv = getComponent(ProductBhv.class);

// insert
Product product = new Product();
product.setProductName("Test Product1");
productBhv.insert(product);
Product product1 = new Product();
Product product2 = new Product();
Product product3 = new Product();
product1.setProductName("Test Product1");
product2.setProductName("Test Product2");
product3.setProductName("Test Product3");
productBhv.insert(product1);
productBhv.insert(product2);
productBhv.insert(product3);
runner.refresh();

// Match All Query
productBhv.selectCursor(cb -> { }, product -> {
assertContains(product.getProductName(), "Test Product");
});

// wait for yellow status
runner.ensureYellow();
Expand Down