vertx/src/test/java/eu/internetofus/common/vertx/QueryBuilderTest.java
/**
   * Should create query with exist.
   *
   * @see QueryBuilder#withExist(String, Boolean)
   */
Should create query with exist.
Should create query with exist .
@Test
  public void shouldCreateQueryWithExist() {
    final var builder = new QueryBuilder();
    assertThat(builder.withExist("fieldName", true)).isSameAs(builder);
    assertThat(builder.build())
        .isEqualTo(new JsonObject().put("fieldName", new JsonObject().put("$exists", true).putNull("$ne")));
  }
@ Test public void shouldCreateQueryWithExist ( ) { final var builder = new QueryBuilder ( ) ; assertThat ( builder . withExist ( "fieldName" , true ) ) . isSameAs ( builder ) ; assertThat ( builder . build ( ) ) . isEqualTo ( new JsonObject ( ) . put ( "fieldName" , new JsonObject ( ) . put ( "$exists" , true ) . putNull ( "$ne" ) ) ) ; }
Should create query with exist.
Should create query with exist .