RequiresTm1Web
import io.skipcheck.tm1.testcontainers.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/"));
// ...
}
}
Members
NO_SOURCE_MESSAGE static | Why tests skip when no TM1 Web source is configured, and what to set. |
NO_SOURCE_MESSAGE
staticString NO_SOURCE_MESSAGEWhy tests skip when no TM1 Web source is configured, and what to set.
Also in the Javadoc.