Uses of Class
org.assertj.core.api.AbstractStringAssert
-
Uses of AbstractStringAssert in org.assertj.core.api
Modifier and TypeClassDescriptionclass
AbstractStringAssert<SELF extends AbstractStringAssert<SELF>>
Modifier and TypeFieldDescriptionstatic final InstanceOfAssertFactory
<String, AbstractStringAssert<?>> InstanceOfAssertFactories.STRING
InstanceOfAssertFactory
for aString
.Modifier and TypeMethodDescriptionAbstractByteArrayAssert.asBase64Encoded()
Encodes the actual array into a Base64 string, the encoded string becoming the new object under test.AbstractByteArrayAssert.asHexString()
Converts the actual byte array under test to an hexadecimal String and returns assertions for the computed String allowing String specific assertions from this call.static AbstractStringAssert
<?> Assertions.assertThat
(String actual) Creates a new instance of
.StringAssert
from aString
static AbstractStringAssert
<?> AssertionsForClassTypes.assertThat
(String actual) Creates a new instance of
.StringAssert
static AbstractStringAssert
<?> Java6Assertions.assertThat
(String actual) Deprecated.Creates a new instance of
.StringAssert
default AbstractStringAssert
<?> WithAssertions.assertThat
(String actual) Creates a new instance of
.CharSequenceAssert
from aString
AbstractAssert.asString()
Returns a String assertion for thetoString()
of the actual value, to allow chaining of String-specific assertions from this call.AbstractByteArrayAssert.asString()
Converts the actual byte[] under test to a String and returns assertions for the computed String allowing String specific assertions from this call.Converts the actual byte[] under test to a String by decoding the specified bytes using the given charset and returns assertions for the computed String allowing String specific assertions from this call.Converts the content of the actualInputStream
to aString
by decoding its bytes using the given charset and returns assertions for the computed String allowing String specific assertions from this call.static AbstractStringAssert
<?> Assumptions.assumeThat
(String actual) Creates a new instance of
assumption.StringAssert
default AbstractStringAssert
<?> WithAssumptions.assumeThat
(String actual) Creates a new instance of
assumption.StringAssert
AbstractFileAssert.content()
Returns String assertions on the content of the actualFile
read with thedefault charset
.Returns String assertions on the content of the actualFile
read with the givenCharset
.AbstractPathAssert.content()
Returns String assertions on the content of the actualPath
read with thedefault charset
.Returns String assertions on the content of the actualPath
read with the givenCharset
.AbstractByteArrayAssert.encodedAsBase64()
Deprecated.static AbstractStringAssert
<?> Creates a new assumption's instance for aString
value.AbstractThrowableAssert.message()
A shortcut forextracting(Throwable::getMessage, as(InstanceOfAssertFactories.STRING))
which allows to extract a throwable's message and then execute assertions on it.static AbstractStringAssert
<?> Creates a new instance of
.StringAssert
static AbstractStringAssert
<?> Deprecated.Creates a new instance of
.StringAssert
AbstractByteArrayAssert.asBase64Encoded()
instead.