public class ShouldHavePackage extends BasicErrorMessageFactory
Class should have a given package.arguments, format| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
shouldHavePackage(Class<?> actual,
Package aPackage)
Creates a new
ShouldHavePackage with a Package instance. |
static ErrorMessageFactory |
shouldHavePackage(Class<?> actual,
String packageName)
Creates a new
ShouldHavePackage with a package name. |
create, create, create, equals, hashCode, toString, unquotedStringpublic static ErrorMessageFactory shouldHavePackage(Class<?> actual, Package aPackage)
ShouldHavePackage with a Package instance.actual - the actual value in the failed assertion.aPackage - the expected packageErrorMessageFactory.public static ErrorMessageFactory shouldHavePackage(Class<?> actual, String packageName)
ShouldHavePackage with a package name.actual - the actual value in the failed assertion.packageName - the expected package nameErrorMessageFactory.Copyright © 2025. All rights reserved.