Class TestNames

java.lang.Object
io.github.flink.gcp.connector.testutils.TestNames

@Internal public final class TestNames extends Object
Random resource-name helpers for tests whose resources share a namespace — the gated real-GCP suites above all, where concurrent runs must not collide on resource names and a crashed run must leave behind names that identify it, but also an emulator harness giving each test a database of its own.
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    Returns a short random run id (eight hex characters) to suffix onto several related resource names, so one run's resources group together — for names built with underscores where dashes are unwelcome.
    static String
    unique(String prefix)
    Returns prefix plus a full random UUID, dash-separated — for resources whose names allow dashes.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • unique

      public static String unique(String prefix)
      Returns prefix plus a full random UUID, dash-separated — for resources whose names allow dashes.
    • runId

      public static String runId()
      Returns a short random run id (eight hex characters) to suffix onto several related resource names, so one run's resources group together — for names built with underscores where dashes are unwelcome.