vertx/src/test/java/eu/internetofus/common/vertx/AggregationBuilderTest.java
/**
   * Should create command that match query.
   *
   * @see AggregationBuilder#match(JsonObject)
   */
Should create command that match query.
Should create command that match query .
@Test
  public void shouldCreateCommandWithMatchQuery() {
    var query = new JsonObject().put("id", "value");
    assertThat(new AggregationBuilder().match(query).build())
        .isEqualTo(new JsonArray().add(new JsonObject().put("$match", query)));
  }
@ Test public void shouldCreateCommandWithMatchQuery ( ) { var query = new JsonObject ( ) . put ( "id" , "value" ) ; assertThat ( new AggregationBuilder ( ) . match ( query ) . build ( ) ) . isEqualTo ( new JsonArray ( ) . add ( new JsonObject ( ) . put ( "$match" , query ) ) ) ; }
Should create command that match query.
Should create command that match query .