skipcheck

TM1 Testcontainers · Docs · Writing tests

RequiresPaw

import io.skipcheck.tm1.testcontainers.RequiresPaw;

Runs a test class or method against a real Planning Analytics Workspace and TM1 server, 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. They also skip without a PawSource, or when IBM's PAW license hasn't been accepted with PAW_ACCEPT_LICENSE=true. Declare a PawContainer parameter to get the shared PAW, which logs users on to the shared TM1 server:

@RequiresPaw
static class WorkspaceTest {

    @Test
    void opensPaw(PawContainer paw) {
        // http://localhost:54321/, which logs on to the shared TM1 server
        assertTrue(paw.getUrl().startsWith("http://"));
        // ...
    }

}

Members

NO_SOURCE_MESSAGE staticWhy tests skip when no PAW source is configured, and what to set.
NO_LICENSE_MESSAGE staticWhy tests skip when IBM's PAW license hasn't been accepted, and what to set.

NO_SOURCE_MESSAGE

static
String NO_SOURCE_MESSAGE

Why tests skip when no PAW source is configured, and what to set.

NO_LICENSE_MESSAGE

static
String NO_LICENSE_MESSAGE

Why tests skip when IBM's PAW license hasn't been accepted, and what to set.

Also in the Javadoc.