vertx/src/test/java/eu/internetofus/common/vertx/ModelsPageContextTest.java
/**
   * Check to find options conversion without sort.
   *
   * @see ModelsPageContext#toFindOptions()
   */
Check to find options conversion without sort.
Check to find options conversion without sort .
@Test
  public void shoulCovertToFindOptionsWithoutSort() {
    final var context = new ModelsPageContext();
    context.query = new JsonObject().put("key", "value").put("element", new JsonObject().put("key", "value"));
    context.offset = 11;
    context.limit = 222;
    final var options = context.toFindOptions();
    assertThat(options.getSort()).isEqualTo(new JsonObject());
    assertThat(options.getSkip()).isEqualTo(11);
    assertThat(options.getLimit()).isEqualTo(222);
  }
@ Test public void shoulCovertToFindOptionsWithoutSort ( ) { final var context = new ModelsPageContext ( ) ; context . query = new JsonObject ( ) . put ( "key" , "value" ) . put ( "element" , new JsonObject ( ) . put ( "key" , "value" ) ) ; context . offset = 11 ; context . limit = 222 ; final var options = context . toFindOptions ( ) ; assertThat ( options . getSort ( ) ) . isEqualTo ( new JsonObject ( ) ) ; assertThat ( options . getSkip ( ) ) . isEqualTo ( 11 ) ; assertThat ( options . getLimit ( ) ) . isEqualTo ( 222 ) ; }
Check to find options conversion without sort.
Check to find options conversion without sort .