vertx/src/test/java/eu/internetofus/common/vertx/QueryBuilderTest.java
/**
   * Should create empty query with range.
   *
   * @see QueryBuilder#withRange(String, Number, Number)
   */
Should create empty query with range.
Should create empty query with range .
@Test
  public void shouldCreateQueryWithRange() {
    final var builder = new QueryBuilder();
    assertThat(builder.withRange("fieldName", 1, 2)).isSameAs(builder);
    assertThat(builder.build())
        .isEqualTo(new JsonObject().put("fieldName", new JsonObject().put("$gte", 1).put("$lte", 2)));
  }
@ Test public void shouldCreateQueryWithRange ( ) { final var builder = new QueryBuilder ( ) ; assertThat ( builder . withRange ( "fieldName" , 1 , 2 ) ) . isSameAs ( builder ) ; assertThat ( builder . build ( ) ) . isEqualTo ( new JsonObject ( ) . put ( "fieldName" , new JsonObject ( ) . put ( "$gte" , 1 ) . put ( "$lte" , 2 ) ) ) ; }
Should create empty query with range.
Should create empty query with range .