Package spoon.testing
Class Assert
java.lang.Object
spoon.testing.Assert
Entry point for assertion methods for different data types.
Each method in this class is a static factory for the type-specific
assertion objects. The purpose of this class is to make test code
more readable.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractFileAssert<?>
assertThat(File actual)
Create a new instance of
.FileAssert
static AbstractFileAssert<?>
assertThat(String actual)
Create a new instance of
.FileAssert
static AbstractCtElementAssert<?>
assertThat(CtElement actual)
Create a new instance of
.CtElementAssert
static AbstractCtPackageAssert<?>
assertThat(CtPackage actual)
Create a new instance of
.CtPackageAssert
-
Method Details
-
assertThat
Create a new instance of
.FileAssert
- Parameters:
actual
- The actual value.- Returns:
- the created assertion object.
-
assertThat
Create a new instance of
.FileAssert
- Parameters:
actual
- The actual value.- Returns:
- the created assertion object.
-
assertThat
Create a new instance of
. Note that a package typed by CtElement will call this method and notCtElementAssert
assertThat(CtPackage)
.- Parameters:
actual
- The actual value.- Returns:
- the created assertion object.
-
assertThat
Create a new instance of
. Note that this assert will be make a deep equals with its content (all types).CtPackageAssert
- Parameters:
actual
- The actual value.- Returns:
- the created assertion object.
-