Package org.assertj.core.error
Class ShouldHavePackage
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldHavePackage
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that a
Class should have a given package.- Author:
- Matteo Mirk
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactoryshouldHavePackage(Class<?> actual, Package aPackage) Creates a newShouldHavePackagewith aPackageinstance.static ErrorMessageFactoryshouldHavePackage(Class<?> actual, String packageName) Creates a newShouldHavePackagewith a package name.Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldHavePackage
Creates a newShouldHavePackagewith aPackageinstance.- Parameters:
actual- the actual value in the failed assertion.aPackage- the expected package- Returns:
- the created
ErrorMessageFactory.
-
shouldHavePackage
Creates a newShouldHavePackagewith a package name.- Parameters:
actual- the actual value in the failed assertion.packageName- the expected package name- Returns:
- the created
ErrorMessageFactory.
-