vertx/src/test/java/eu/internetofus/common/vertx/ModelsPageContextTest.java
/**
   * Check to string conversion with a query value.
   *
   * @see ModelsPageContext#toString()
   */
Check to string conversion with a query value.
Check to string conversion with a query value .
@Test
  public void shoulCovertToStringWithQuery() {
    final var context = new ModelsPageContext();
    context.query = new JsonObject().put("key", "value").put("element", new JsonObject().put("key", "value"));
    context.offset = 10;
    context.limit = 20;
    assertThat(context.toString()).isEqualTo("query:\n" + context.query.encodePrettily() + "\noffset:10\nlimit:20\n");
  }
@ Test public void shoulCovertToStringWithQuery ( ) { final var context = new ModelsPageContext ( ) ; context . query = new JsonObject ( ) . put ( "key" , "value" ) . put ( "element" , new JsonObject ( ) . put ( "key" , "value" ) ) ; context . offset = 10 ; context . limit = 20 ; assertThat ( context . toString ( ) ) . isEqualTo ( "query:\n" + context . query . encodePrettily ( ) + "\noffset:10\nlimit:20\n" ) ; }
Check to string conversion with a query value.
Check to string conversion with a query value .