You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature: Create "unwrapped" overload for hasX if X is a value type #159
The generator could look for constructors, static _.of methods, and other popular patterns. It's not clear to me if there should be a limit on the length of the parameter list. Anyway, the desired implementation seems straight-forward:
PS: This is probably easily done for specific use cases in any given project using templates, but I don't see documentation for a way to inject custom templates when using the generator through the Maven plugin.
The configuration seems very specific, though; on first glance, I don't see how to tell the generator "if the property has type X, use this template instead/also".
I think #220 would be a neater, more generally applicable alternative. Of course, we couldn't get back to the original Assert once we "descend" into the one of the property, so there may be independent value of unwrapping single-property classes/records.
Activity
reitzig commentedon Aug 17, 2020
Never mind my PS: https://joel-costigliola.github.io/assertj/assertj-assertions-generator-maven-plugin.html#custom-templates
The configuration seems very specific, though; on first glance, I don't see how to tell the generator "if the property has type X, use this template instead/also".
reitzig commentedon Aug 2, 2024
I think #220 would be a neater, more generally applicable alternative. Of course, we couldn't get back to the original Assert once we "descend" into the one of the property, so there may be independent value of unwrapping single-property classes/records.