Add an integration test when a change in Wanaku needs a test with real processes: the server, a capability or a fixture. Put the test in the module of its area. Add a new module only for a new area.
<Something>ITCase, so that the failsafe plugin runs it.RouterTestBase or CamelCapabilityTestBase. Most base classes
extend BaseIntegrationTest, which gives the shared server, a RouterClient and an MCP client.
GovernanceTestBase and SemanticRouterTestBase start their own servers instead.assumeThat, not assertThat. A missing artifact then skips the
test instead of failing it. Log a WARN message that names the missing artifact and its path.@BeforeEach or in the test, and stop them in @AfterEach. Do not catch and hide
exceptions in setup and teardown.PortUtils.findAvailablePort(). Do not use fixed ports.Each test must be easy to read on its own. Use long, descriptive names, and keep the setup explicit.
pom.xml that inherits the parent POM.<modules> list of the parent pom.xml.<Area>TestBase class that extends BaseIntegrationTest.The build applies Spotless with the Palantir Java Format when it compiles. Wildcard imports are not allowed. The
Static Analysis workflow runs PMD and SpotBugs on each pull request and posts a report as a comment.