components/src/test/java/eu/internetofus/common/components/WeNetModelContextTest.java
/**
   * Should create a valid context.
   */
Should create a valid context.
Should create a valid context .
@Test
  public void shouldCreateContext() {
    final var name = "name";
    final var type = Model.class;
    final var vertx = Vertx.vertx();
    final var context = WeNetModelContext.creteWeNetContext(name, type, vertx);
    assertThat(context).isNotNull();
    assertThat(context.name).isSameAs(name);
    assertThat(context.validateContext).isNotNull();
    assertThat(context.validateContext.errorCode()).isEqualTo("bad_name");
    assertThat(context.type).isSameAs(type);
  }
@ Test public void shouldCreateContext ( ) { final var name = "name" ; final var type = Model . class ; final var vertx = Vertx . vertx ( ) ; final var context = WeNetModelContext . creteWeNetContext ( name , type , vertx ) ; assertThat ( context ) . isNotNull ( ) ; assertThat ( context . name ) . isSameAs ( name ) ; assertThat ( context . validateContext ) . isNotNull ( ) ; assertThat ( context . validateContext . errorCode ( ) ) . isEqualTo ( "bad_name" ) ; assertThat ( context . type ) . isSameAs ( type ) ; }
Should create a valid context.
Should create a valid context .