TestEntity class final
A predefined entity recommended to use as the test group entity for dependencies. This entity is designated for managing services that are utilized during testing, allowing for easy access to mock dependencies, test doubles, or any configurations necessary for unit tests and integration tests. It ensures that test services do not interfere with the application's production or development dependencies.
Constructors
- TestEntity.new()
-
const
Properties
Methods
-
isDefault(
) → bool -
inherited
-
isNotDefault(
) → bool -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
preferOverDefault(
Entity other) → Entity -
Returns
other
ifthis
is DefaultEntity, otherwise returnsthis
.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited