TestResourceNamer Class
- java.
lang. Object - com.
azure. core. test. utils. ResourceNamer - com.
azure. core. test. utils. TestResourceNamer
- com.
- com.
public class TestResourceNamer
extends ResourceNamer
Constructor Summary
Constructor | Description |
---|---|
TestResourceNamer(TestContextManager testContextManager, RecordedData storage) |
Constructor of Test |
TestResourceNamer(TestContextManager testContextManager, Consumer<String> storeVariable, Supplier<String> getVariable) |
Constrctor of Test |
TestResourceNamer(String name, TestMode testMode, RecordedData storage) |
Deprecated Constructor of Test |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
now()
Gets an Offset |
String |
randomName(String prefix, int maxLen)
Gets a random name. |
String |
randomUuid()
Gets a random UUID. |
String |
recordValueFromConfig(String value)
Record the value into storage, and pop it up when playback. |
Methods inherited from ResourceNamer
Methods inherited from java.lang.Object
Constructor Details
TestResourceNamer
public TestResourceNamer(TestContextManager testContextManager, RecordedData storage)
Constructor of TestResourceNamer
Parameters:
TestResourceNamer
public TestResourceNamer(TestContextManager testContextManager, Consumer
Constrctor of TestResourceNamer
Parameters:
TestResourceNamer
@Deprecated
public TestResourceNamer(String name, TestMode testMode, RecordedData storage)
Deprecated
Constructor of TestResourceNamer
Parameters:
Method Details
now
public OffsetDateTime now()
Gets an OffsetDateTime of UTC now.
Returns:
randomName
public String randomName(String prefix, int maxLen)
Gets a random name.
Overrides:
TestResourceNamer.randomName(String prefix, int maxLen)Parameters:
Returns:
randomUuid
public String randomUuid()
Gets a random UUID.
Overrides:
TestResourceNamer.randomUuid()Returns:
recordValueFromConfig
public String recordValueFromConfig(String value)
Record the value into storage, and pop it up when playback.
Parameters:
Returns: