Class TestTableItem
-
- All Implemented Interfaces:
public abstract class TestTableItem extends JsonSerializable
None
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classTestTableItem.BuilderBuilder for TestTableItem.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description TestTableItem()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>name()The name of the test. abstract Optional<Map<String, Object>>parameters()The parameters to the test. abstract Optional<String>exceptionIfMldev()Expects an exception for MLDev matching the string. abstract Optional<String>exceptionIfVertex()Expects an exception for Vertex matching the string. abstract Optional<String>overrideReplayId()Use if you don't want to use the default replay id which is derived from the test name. abstract Optional<Boolean>hasUnion()True if the parameters contain an unsupported union type. abstract Optional<String>skipInApiMode()When set to a reason string, this test will be skipped in the API mode. abstract Optional<List<String>>ignoreKeys()Keys to ignore when comparing the request and response. static TestTableItem.Builderbuilder()Instantiates a builder for TestTableItem. abstract TestTableItem.BuildertoBuilder()Creates a builder with the same values as this instance. static TestTableItemfromJson(String jsonString)Deserializes a JSON string to a TestTableItem object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
parameters
abstract Optional<Map<String, Object>> parameters()
The parameters to the test. Use pydantic models.
-
exceptionIfMldev
abstract Optional<String> exceptionIfMldev()
Expects an exception for MLDev matching the string.
-
exceptionIfVertex
abstract Optional<String> exceptionIfVertex()
Expects an exception for Vertex matching the string.
-
overrideReplayId
abstract Optional<String> overrideReplayId()
Use if you don't want to use the default replay id which is derived from the test name.
-
hasUnion
abstract Optional<Boolean> hasUnion()
True if the parameters contain an unsupported union type. This test will be skipped for languages that do not support the union type.
-
skipInApiMode
abstract Optional<String> skipInApiMode()
When set to a reason string, this test will be skipped in the API mode. Use this flag for tests that can not be reproduced with the real API. E.g. a test that deletes a resource.
-
ignoreKeys
abstract Optional<List<String>> ignoreKeys()
Keys to ignore when comparing the request and response. This is useful for tests that are not deterministic.
-
builder
static TestTableItem.Builder builder()
Instantiates a builder for TestTableItem.
-
toBuilder
abstract TestTableItem.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static TestTableItem fromJson(String jsonString)
Deserializes a JSON string to a TestTableItem object.
-
-
-
-