Annotation Interface RequiresPaw


@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented @RequiresTm1 @ExtendWith(io.skipcheck.tm1.testcontainers.PawExtension.class) public @interface 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://"));
		// ...
	}

}
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Why tests skip when IBM's PAW license hasn't been accepted, and what to set.
    static final String
    Why tests skip when no PAW source is configured, and what to set.
  • Field Details

    • NO_SOURCE_MESSAGE

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

      static final String NO_LICENSE_MESSAGE
      Why tests skip when IBM's PAW license hasn't been accepted, and what to set.
      See Also: