Package | Description |
---|---|
org.cornutum.tcases.openapi.resolver | |
org.cornutum.tcases.openapi.restassured | |
org.cornutum.tcases.openapi.testwriter.encoder | |
org.cornutum.tcases.resolve |
Modifier and Type | Method and Description |
---|---|
DataValue<?> |
MessageData.getValue()
Returns the data value.
|
static DataValue<?> |
JsonNodes.toDataValue(JsonNode node)
Returns the
DataValue represented by the node |
Modifier and Type | Method and Description |
---|---|
T |
AbstractMessageDataBuilder.arrayData(DataValue<?>... itemValues) |
Constructor and Description |
---|
HeaderData(String name,
DataValue<?> value,
String mediaType,
boolean valid)
Creates a new HeaderData instance.
|
MessageData(DataValue<?> value,
String mediaType,
boolean valid)
Creates a new MessageData instance.
|
ParamData(String name,
DataValue<?> value,
String mediaType,
boolean valid)
Creates a new ParamData instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
RestAssuredTestCaseWriter.writeBodyBinary(String testName,
DataValue<?> value,
IndentedWriter targetWriter)
Writes the request body as a byte array for a target test case to the given stream.
|
protected void |
RestAssuredTestCaseWriter.writeMultipartPart(String property,
DataValue<?> value,
EncodingData encoding,
IndentedWriter targetWriter)
Writes the content of the
multipart/form-data part for the given body object property. |
Modifier and Type | Method and Description |
---|---|
String |
DataValueText.convert(DataValue<?> value)
Returns the converted form of the given
DataValue . |
javax.json.JsonValue |
DataValueJsonValue.convert(DataValue<?> value)
Returns the converted form of the given
DataValue . |
String |
DataValueJson.convert(DataValue<?> value)
Returns the converted form of the given
DataValue . |
T |
DataValueConverter.convert(DataValue<?> value)
Returns the converted form of the given
DataValue . |
byte[] |
DataValueBinary.convert(DataValue<?> value)
Returns the converted form of the given
DataValue . |
static List<Map.Entry<String,String>> |
FormUrlEncoder.encode(DataValue<?> value)
Returns the name/value pairs that encode the given
DataValue , applying
the application/x-www-form-urlencoded encoding to all pairs. |
static String |
SimpleValueEncoder.encode(DataValue<?> value,
boolean exploded) |
static List<Map.Entry<String,String>> |
FormUrlEncoder.encode(DataValue<?> value,
boolean encoded)
Returns the name/value pairs that encode the given
DataValue . |
static String |
SimpleValueEncoder.encode(DataValue<?> value,
boolean exploded,
UriEncoder.Component component) |
static String |
LabelValueEncoder.encode(DataValue<?> value,
boolean exploded,
UriEncoder.Component component) |
static List<Map.Entry<String,String>> |
FormUrlEncoder.encode(DataValue<?> value,
Map<String,EncodingData> propertyEncodings,
boolean encoded)
Returns the name/value pairs that encode the given
DataValue . |
static String |
SimpleValueEncoder.encode(DataValue<?> value,
UriEncoder.Component component) |
static String |
MatrixValueEncoder.encode(String name,
DataValue<?> value,
boolean exploded,
UriEncoder.Component component) |
static List<Map.Entry<String,String>> |
FormParameterEncoder.encode(String name,
String style,
boolean exploded,
DataValue<?> value) |
static byte[] |
DataValueBinary.toBytes(DataValue<?> value)
Returns the converted form of the given
DataValue . |
static String |
FormUrlEncoder.toForm(DataValue<?> value)
Returns the full encoding of the content of the given
DataValue . |
static javax.json.JsonValue |
DataValueJsonValue.toJson(DataValue<?> value)
Returns the converted form of the given
DataValue . |
static String |
DataValueJson.toJson(DataValue<?> value)
Returns the converted form of the given
DataValue . |
static String |
DataValueText.toText(DataValue<?> value)
Returns the converted form of the given
DataValue . |
Modifier and Type | Class and Description |
---|---|
class |
ArrayValue<T>
Represents a generated array value for a test case.
|
class |
Base64Value
Represents a generated base64 address value for a test case.
|
class |
BinaryValue
Represents a generated binary value for a test case.
|
class |
BooleanValue
Represents a generated boolean value for a test case.
|
class |
DateTimeValue
Represents a generated time string value for a test case.
|
class |
DateValue
Represents a generated date string value for a test case.
|
class |
DecimalValue
Represents a generated decimal value for a test case.
|
class |
EmailValue
Represents a generated email address value for a test case.
|
class |
IntegerValue
Represents a generated integer value for a test case.
|
class |
LongValue
Represents a generated long value for a test case.
|
class |
NullValue
Represents a generated null value for a test case.
|
class |
ObjectValue
Represents a generated object value for a test case.
|
class |
StringValue
Represents a generated string value for a test case.
|
class |
UuidValue
Represents a generated UUID string value for a test case.
|
Modifier and Type | Method and Description |
---|---|
protected DataValue<BigDecimal> |
DecimalEnum.dataValueOf(BigDecimal value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<BigDecimal> |
DecimalDomain.dataValueOf(BigDecimal value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<BigDecimal> |
DecimalConstant.dataValueOf(BigDecimal value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<Boolean> |
BooleanEnum.dataValueOf(Boolean value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<Boolean> |
BooleanConstant.dataValueOf(Boolean value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<byte[]> |
BinaryDomain.dataValueOf(byte[] value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<byte[]> |
BinaryConstant.dataValueOf(byte[] value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<Integer> |
LengthDomain.dataValueOf(Integer value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<Integer> |
IntegerEnum.dataValueOf(Integer value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<Integer> |
IntegerDomain.dataValueOf(Integer value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<Integer> |
IntegerConstant.dataValueOf(Integer value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<List<DataValue<Object>>> |
ArrayConstant.dataValueOf(List<DataValue<Object>> value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<List<DataValue<T>>> |
ArrayDomain.dataValueOf(List<DataValue<T>> value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<Long> |
LongEnum.dataValueOf(Long value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<Long> |
LongDomain.dataValueOf(Long value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<Long> |
LongConstant.dataValueOf(Long value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<Map<String,DataValue<?>>> |
ObjectDomain.dataValueOf(Map<String,DataValue<?>> value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<Map<String,DataValue<?>>> |
ObjectConstant.dataValueOf(Map<String,DataValue<?>> value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<Object> |
NullDomain.dataValueOf(Object value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<Object> |
MultiTypeDomain.dataValueOf(Object value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<String> |
UuidEnum.dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<String> |
UuidDomain.dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<String> |
UuidConstant.dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<String> |
StringEnum.dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<String> |
StringConstant.dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<String> |
EmailEnum.dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<String> |
EmailDomain.dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<String> |
EmailConstant.dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<String> |
DateTimeEnum.dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<String> |
DateTimeDomain.dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<String> |
DateTimeConstant.dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<String> |
DateEnum.dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<String> |
DateDomain.dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<String> |
DateConstant.dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<String> |
Base64Domain.dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<String> |
AbstractStringDomain.dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
protected abstract DataValue<T> |
AbstractValueDomain.dataValueOf(T value)
Returns a
DataValue for the given value in this domain. |
DataValue<?> |
Schema.getConstant()
Returns the constant value of all input values.
|
static DataValue<?> |
DataValues.integerValueOf(String format,
DataValue<?> value)
Returns a INTEGER type value defined by the given format.
|
static DataValue<?> |
DataValues.numberValueOf(BigDecimal value)
Returns a new numeric
DataValue with most specific type for the given value. |
static <T> DataValue<T> |
DataValue.of(T value,
DataValue.Type type,
String format)
Creates a new DataValue instance.
|
default DataValue<T> |
ValueDomain.select(ResolverContext context)
Returns a random value from this domain.
|
DataValue<Object> |
NullDomain.select(ResolverContext context)
Returns a random value from this domain.
|
Modifier and Type | Method and Description |
---|---|
protected DataValue<List<DataValue<Object>>> |
ArrayConstant.dataValueOf(List<DataValue<Object>> value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<List<DataValue<T>>> |
ArrayDomain.dataValueOf(List<DataValue<T>> value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<Map<String,DataValue<?>>> |
ObjectDomain.dataValueOf(Map<String,DataValue<?>> value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<Map<String,DataValue<?>>> |
ObjectConstant.dataValueOf(Map<String,DataValue<?>> value)
Returns a
DataValue for the given value in this domain. |
Set<DataValue<?>> |
Schema.getEnum()
Returns the enumeration of all input values.
|
protected List<DataValue<T>> |
ArrayEnum.valueOf(String value)
Returns the value represented by the given string.
|
Stream<DataValue<T>> |
ValueDomain.values(ResolverContext context)
Returns a random sequence of values from this domain.
|
Stream<DataValue<T>> |
SequenceDomain.values(ResolverContext context)
Returns a random sequence of values from this domain.
|
Stream<DataValue<Map<String,DataValue<?>>>> |
ObjectDomain.values(ResolverContext context)
Returns a random sequence of values from this domain.
|
Stream<DataValue<Map<String,DataValue<?>>>> |
ObjectDomain.values(ResolverContext context)
Returns a random sequence of values from this domain.
|
Stream<DataValue<Object>> |
NullDomain.values(ResolverContext context)
Returns a random sequence of values from this domain.
|
Stream<DataValue<Object>> |
MultiTypeDomain.values(ResolverContext context)
Returns a random sequence of values from this domain.
|
Stream<DataValue<Long>> |
LongDomain.values(ResolverContext context)
Returns a random sequence of values from this domain.
|
Stream<DataValue<Integer>> |
LengthDomain.values(ResolverContext context)
Returns a random sequence of values from this domain.
|
Stream<DataValue<Integer>> |
IntegerDomain.values(ResolverContext context)
Returns a random sequence of values from this domain.
|
Stream<DataValue<T>> |
EnumDomain.values(ResolverContext context)
Returns a random sequence of values from this domain.
|
Stream<DataValue<BigDecimal>> |
DecimalDomain.values(ResolverContext context)
Returns a random sequence of values from this domain.
|
Stream<DataValue<T>> |
ConstantDomain.values(ResolverContext context)
Returns a random sequence of values from this domain.
|
Stream<DataValue<List<DataValue<T>>>> |
ArrayDomain.values(ResolverContext context)
Returns a random sequence of values from this domain.
|
Stream<DataValue<List<DataValue<T>>>> |
ArrayDomain.values(ResolverContext context)
Returns a random sequence of values from this domain.
|
Modifier and Type | Method and Description |
---|---|
static <T> ArrayValue<T> |
DataValues.arrayOf(DataValue<T>... items)
Returns a new
ArrayValue . |
static ArrayValue<Object> |
DataValues.arrayOfAny(DataValue<?>... items)
Returns a new
ArrayValue . |
static BigDecimal |
DataValues.bigDecimalOf(DataValue<?> value)
Returns a new
BigDecimal . |
SchemaBuilder |
SchemaBuilder.constant(DataValue<?> constant) |
<T> SchemaBuilder |
SchemaBuilder.constant(DataValue<T>... items) |
default boolean |
ValueDomain.contains(DataValue<?> value)
Returns true if the given value belongs to this domain.
|
SchemaBuilder |
SchemaBuilder.enums(DataValue<?>... values) |
static Integer |
DataValues.integerOf(DataValue<?> value)
Returns a new
Integer . |
static DataValue<?> |
DataValues.integerValueOf(String format,
DataValue<?> value)
Returns a INTEGER type value defined by the given format.
|
static Long |
DataValues.longOf(DataValue<?> value)
Returns a new
Long . |
void |
Schema.setConstant(DataValue<?> constant)
Changes the constant value of all input values.
|
static String |
DataValues.stringOf(DataValue<?> value)
Returns a new
String . |
DataValues.ObjectValueBuilder |
DataValues.ObjectValueBuilder.with(String name,
DataValue<?> value) |
Modifier and Type | Method and Description |
---|---|
static ArrayValue<Object> |
DataValues.arrayOfAny(List<DataValue<?>> items)
Returns a new
ArrayValue . |
boolean |
ArrayDomain.contains(List<DataValue<T>> value)
Returns true if the given value belongs to this domain.
|
boolean |
ObjectDomain.contains(Map<String,DataValue<?>> value)
Returns true if the given value belongs to this domain.
|
protected DataValue<List<DataValue<Object>>> |
ArrayConstant.dataValueOf(List<DataValue<Object>> value)
Returns a
DataValue for the given value in this domain. |
protected ArrayValue<T> |
ArrayEnum.dataValueOf(List<DataValue<T>> value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<List<DataValue<T>>> |
ArrayDomain.dataValueOf(List<DataValue<T>> value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<Map<String,DataValue<?>>> |
ObjectDomain.dataValueOf(Map<String,DataValue<?>> value)
Returns a
DataValue for the given value in this domain. |
protected DataValue<Map<String,DataValue<?>>> |
ObjectConstant.dataValueOf(Map<String,DataValue<?>> value)
Returns a
DataValue for the given value in this domain. |
SchemaBuilder |
SchemaBuilder.enums(List<DataValue<?>> values) |
void |
Schema.setEnum(Collection<DataValue<?>> enums)
Changes the enumeration of all input values.
|
Constructor and Description |
---|
ArrayEnum(Collection<List<DataValue<T>>> enums)
Creates a new ArrayEnum instance.
|
ArrayValue(List<DataValue<T>> value)
Creates a new ArrayValue instance.
|
ArrayValue(List<DataValue<T>> value,
String format)
Creates a new ArrayValue instance.
|
ObjectValue(Map<String,DataValue<?>> value)
Creates a new ObjectValue instance.
|
ObjectValue(Map<String,DataValue<?>> value,
String format)
Creates a new ObjectValue instance.
|
Copyright © 2024 The Cornutum Project. All rights reserved.