public class AssertionsOnColumnOfChangeType extends Object
The different type of values are enumerated in ValueType
.
AssertOnColumnType
Modifier and Type | Method and Description |
---|---|
static <A extends AbstractAssert<?>> |
isBoolean(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value valueAtStartPoint,
Value valueAtEndPoint,
boolean lenient)
Verifies that the type of the values of the column is boolean.
|
static <A extends AbstractAssert<?>> |
isBytes(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value valueAtStartPoint,
Value valueAtEndPoint,
boolean lenient)
Verifies that the type of the values of the column is array of bytes.
|
static <A extends AbstractAssert<?>> |
isDate(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value valueAtStartPoint,
Value valueAtEndPoint,
boolean lenient)
Verifies that the type of the values of the column is date.
|
static <A extends AbstractAssert<?>> |
isDateTime(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value valueAtStartPoint,
Value valueAtEndPoint,
boolean lenient)
Verifies that the type of the values of the column is date/time.
|
static <A extends AbstractAssert<?>> |
isNumber(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value valueAtStartPoint,
Value valueAtEndPoint,
boolean lenient)
Verifies that the type of the values of the column is number.
|
static <A extends AbstractAssert<?>> |
isOfAnyTypeIn(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value valueAtStartPoint,
Value valueAtEndPoint,
ValueType... expected)
Verifies that the type of the column is equal to one of the types in parameters.
|
static <A extends AbstractAssert<?>> |
isOfType(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value valueAtStartPoint,
Value valueAtEndPoint,
ValueType expected,
boolean lenient)
Verifies that the type of the values of the column is equal to the type in parameter.
|
static <A extends AbstractAssert<?>> |
isText(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value valueAtStartPoint,
Value valueAtEndPoint,
boolean lenient)
Verifies that the type of the values of the column is text.
|
static <A extends AbstractAssert<?>> |
isTime(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value valueAtStartPoint,
Value valueAtEndPoint,
boolean lenient)
Verifies that the type of the values of the column is time.
|
static <A extends AbstractAssert<?>> |
isUUID(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value valueAtStartPoint,
Value valueAtEndPoint,
boolean lenient)
Verifies that the type of the values of the column is UUID.
|
public static <A extends AbstractAssert<?>> A isOfType(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value valueAtStartPoint, Value valueAtEndPoint, ValueType expected, boolean lenient)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.valueAtStartPoint
- The value at start point.valueAtEndPoint
- The value at end point.expected
- The expected type to compare to.lenient
- true
if the test is lenient : if the type of a value is not identified (for example when the
value is null
), it consider that it is ok.this
assertion object.AssertionError
- If the type of the column is different to the type in parameter.public static <A extends AbstractAssert<?>> A isOfAnyTypeIn(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value valueAtStartPoint, Value valueAtEndPoint, ValueType... expected)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.valueAtStartPoint
- The value at start point.valueAtEndPoint
- The value at end point.expected
- The expected types to compare to.this
assertion object.AssertionError
- If the type of the column is different to all the types in parameters.public static <A extends AbstractAssert<?>> A isNumber(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value valueAtStartPoint, Value valueAtEndPoint, boolean lenient)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.valueAtStartPoint
- The value at start point.valueAtEndPoint
- The value at end point.lenient
- true
if the test is lenient : if the type of a value is not identified (for example when the
value is null
), it consider that it is ok.this
assertion object.AssertionError
- If the type of the column is not number.public static <A extends AbstractAssert<?>> A isBoolean(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value valueAtStartPoint, Value valueAtEndPoint, boolean lenient)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.valueAtStartPoint
- The value at start point.valueAtEndPoint
- The value at end point.lenient
- true
if the test is lenient : if the type of a value is not identified (for example when the
value is null
), it consider that it is ok.this
assertion object.AssertionError
- If the type of the column is not boolean.public static <A extends AbstractAssert<?>> A isDate(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value valueAtStartPoint, Value valueAtEndPoint, boolean lenient)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.valueAtStartPoint
- The value at start point.valueAtEndPoint
- The value at end point.lenient
- true
if the test is lenient : if the type of a value is not identified (for example when the
value is null
), it consider that it is ok.this
assertion object.AssertionError
- If the type of the column is not date.public static <A extends AbstractAssert<?>> A isTime(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value valueAtStartPoint, Value valueAtEndPoint, boolean lenient)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.valueAtStartPoint
- The value at start point.valueAtEndPoint
- The value at end point.lenient
- true
if the test is lenient : if the type of a value is not identified (for example when the
value is null
), it consider that it is ok.this
assertion object.AssertionError
- If the type of the column is not time.public static <A extends AbstractAssert<?>> A isDateTime(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value valueAtStartPoint, Value valueAtEndPoint, boolean lenient)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.valueAtStartPoint
- The value at start point.valueAtEndPoint
- The value at end point.lenient
- true
if the test is lenient : if the type of a value is not identified (for example when the
value is null
), it consider that it is ok.this
assertion object.AssertionError
- If the type of the column is not date/time.public static <A extends AbstractAssert<?>> A isBytes(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value valueAtStartPoint, Value valueAtEndPoint, boolean lenient)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.valueAtStartPoint
- The value at start point.valueAtEndPoint
- The value at end point.lenient
- true
if the test is lenient : if the type of a value is not identified (for example when the
value is null
), it consider that it is ok.this
assertion object.AssertionError
- If the type of the column is not array of bytes.public static <A extends AbstractAssert<?>> A isText(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value valueAtStartPoint, Value valueAtEndPoint, boolean lenient)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.valueAtStartPoint
- The value at start point.valueAtEndPoint
- The value at end point.lenient
- true
if the test is lenient : if the type of a value is not identified (for example when the
value is null
), it consider that it is ok.this
assertion object.AssertionError
- If the type of the column is not text.public static <A extends AbstractAssert<?>> A isUUID(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value valueAtStartPoint, Value valueAtEndPoint, boolean lenient)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.valueAtStartPoint
- The value at start point.valueAtEndPoint
- The value at end point.lenient
- true
if the test is lenient : if the type of a value is not identified (for example when the
value is null
), it consider that it is ok.this
assertion object.AssertionError
- If the type of the column is not UUID.Copyright © 2020 AssertJ. All rights reserved.