TestGlobalIdGeneratorFactory

A test implementation of GlobalIdGeneratorFactory that creates a CosIdGenerator with a fixed machine ID for testing purposes.

This factory is ordered last (ORDER_LAST) to ensure it is used in test environments, providing a deterministic and isolated ID generation for unit tests. It creates a Radix62CosIdGenerator wrapped in a ClockSyncCosIdGenerator to ensure clock synchronization and consistent ID generation across test runs.

See also

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun create(): CosIdGenerator

Creates a new CosIdGenerator instance configured for testing.