-
-
Notifications
You must be signed in to change notification settings - Fork 773
Milestone
Description
Summary
I'm working on a code generation module and I need to check that generated classes have the right package.
Currently, this is the best AssertJ lets me express:
Class<?> aClass;
String packageName;
assertThat(aClass.getPackageName()).isEqualTo(packageName);I would like a more expressive assertion such as:
Example
assertThat(aClass).hasPackage(packageName);There could be an overload for a Package argument as well.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels