Annotation Interface RequiresTm1Web


@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented @RequiresTm1 @ExtendWith(io.skipcheck.tm1.testcontainers.Tm1WebExtension.class) public @interface RequiresTm1Web
Runs a test class or method against real TM1 Web and TM1 servers, and skips it when either isn't available.

It includes RequiresTm1, so tests also skip without Docker or a Tm1Source, and can still take a Tm1ServerContainer parameter. Declare a Tm1WebContainer parameter to get the shared TM1 Web, which lists and logs on to the shared TM1 server:

@RequiresTm1Web
static class WebsheetTest {

	@Test
	void opensAWebsheet(Tm1WebContainer web) {
		// http://localhost:54321/tm1web/, which lists the shared TM1 server
		assertTrue(web.getUrl().endsWith("/tm1web/"));
		// ...
	}

}
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Why tests skip when no TM1 Web source is configured, and what to set.
  • Field Details

    • NO_SOURCE_MESSAGE

      static final String NO_SOURCE_MESSAGE
      Why tests skip when no TM1 Web source is configured, and what to set.
      See Also: