Files
pnoker 372d75b0c9 refactor(core): rename find/query/fetch methods to get per crud law
sweep every module to satisfy the new method-name rule, renaming
about 40 methods together with their interface, implementation, test
and cli call sites: store find() lookups become get(), analytics
queryLatest/queryHistory become getLatest/getHistory, sql helper
query() becomes spec()/sql(), jwks fetch() becomes load(), and the
cursor record component queryDigest becomes requestDigest

no behavior changes; full unit suite (5278 tests) and both quality
gates stay green
2026-09-18 09:53:51 +08:00
..
2026-05-26 00:30:11 +08:00

DC3 Common Test

Overview

dc3-common-test is the shared test-support module of the IoT DC3 platform. It provides reusable contract tests, test harnesses, and Testcontainers definitions so individual modules can write integration tests without re-deriving the same fixtures.

Module Information

  • Group ID: io.github.pnoker
  • Artifact ID: dc3-common-test

Key Components

Area Components
Contract tests SecretFieldContractTest, EnumContractTest
Test support RabbitTestHarness, JsonAssertions, FixedClockConfig, GrpcInProcessExtension
Testcontainers PgTimescaleContainer, RabbitContainer, MqttContainer

Dependencies

  • spring-boot-starter-test, reactor-test, spring-rabbit-test, grpc-testing

Usage

Add as a test-scoped dependency. Integration tests requiring real infrastructure use the Testcontainers helpers (PostgreSQL + TimescaleDB, RabbitMQ, MQTT), which need a Docker-compatible container runtime.

Build Instructions

mvn -s .mvn/settings.xml -pl dc3-common/dc3-common-test -am package

Testing

This module currently has no module-specific automated tests. Verify generated or production sources by compiling the affected reactor from the repository root:

mvn -s .mvn/settings.xml -q -pl dc3-common/dc3-common-test -am -DskipTests compile
  • dc3-e2e — backend end-to-end suite built on these helpers
  • Consumed test-scoped by dc3-common-* and dc3-center-* modules