Static Public Member Functions | |
| static String | requireTestResourceKey (String asksFor, String... products) |
The resource key for a test that calls the live cloud service, from SHARED_RESOURCE_KEY_NAMES and then TEST_RESOURCE_KEY. | |
| static String | requireResourceKey (List< String > exampleNames, String asksFor, String... products) |
The resource key for a test that calls the live cloud service, from SHARED_RESOURCE_KEY_NAMES and then the given names. | |
| static String | answeredWithout (String thing, String reason, String... products) |
| The message for a value the cloud answered without. | |
| static String | getOrSetTestResourceKey () |
| Obtain a resource key either from environment variable or from a property. | |
| static String | getOrSetTestResourceKey (boolean shouldThrow) |
| static String | getOrSetTestResourceKey (String value, boolean shouldThrow) |
| static String | getOrSetTestResourceKey (String value) |
| static String | getOrSetResourceKey (String value, String variableName, String errorMessage, boolean shouldThrow) |
| Obtain a resource key from the passed argument, from environment variable or from a property. | |
| static String | getOrSetSuperResourceKey (String value, String variablename) |
| static String | getOrSetSuperResourceKey (String value, String variablename, boolean shouldThrow) |
Static Public Attributes | |
| static final String | TEST_RESOURCE_KEY = "TestResourceKey" |
| static final List< String > | SHARED_RESOURCE_KEY_NAMES |
| The names every cloud test reads a resource key from first, before the names its own example reads. | |
Member Function Documentation
◆ answeredWithout()
|
static |
The message for a value the cloud answered without.
- Parameters
-
thing the property or element that has no value reason the reason the cloud gave, or null products the products a key needs for the value
- Returns
- the message
◆ getOrSetResourceKey()
|
static |
Obtain a resource key from the passed argument, from environment variable or from a property.
Store as System Property TEST_RESOURCE_KEY
◆ requireResourceKey()
|
static |
The resource key for a test that calls the live cloud service, from SHARED_RESOURCE_KEY_NAMES and then the given names.
- Parameters
-
exampleNames the names the example reads, in the order it reads them asksFor what the test asks the service for products the products the key has to carry
- Returns
- the resource key
◆ requireTestResourceKey()
|
static |
The resource key for a test that calls the live cloud service, from SHARED_RESOURCE_KEY_NAMES and then TEST_RESOURCE_KEY.
Fails the test when there is none, because a cloud test that passes without a key has called nothing.
- Parameters
-
asksFor what the test asks the service for products the products the key has to carry
- Returns
- the resource key
Member Data Documentation
◆ SHARED_RESOURCE_KEY_NAMES
|
static |
Initial value:
=
Collections.unmodifiableList(Arrays.asList(
"_51DEGREES_RESOURCE_KEY",
"_51DEGREES_RESOURCE_KEY_BESPOKE"))
The names every cloud test reads a resource key from first, before the names its own example reads.
