Device detection services for 51Degrees Pipeline

fiftyone.devicedetection.shared.testhelpers.KeyUtils Class Reference

Detailed Description

Helpers to obtain keys from the environment.

Static Public Member Functions

static String getNamedKey (String keyName)
 Obtain a key either from environment variable or from a property.
static boolean isInvalidKey (String keyValue)
 Evaluate whether a key might be valid.

Member Function Documentation

◆ getNamedKey()

String fiftyone.devicedetection.shared.testhelpers.KeyUtils.getNamedKey ( String keyName)
static

Obtain a key either from environment variable or from a property.

Try resource key as env var, then as upper case env var, the system property

◆ isInvalidKey()

boolean fiftyone.devicedetection.shared.testhelpers.KeyUtils.isInvalidKey ( String keyValue)
static

Evaluate whether a key might be valid.

Parameters
keyValuevalue to test
Returns
boolean