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
I'm not sure to understand what you want, can you give an example of the assertions you would like to be generated ?
I'm gonna try to answer anyway, as CartAssert.assertThat(List items) parameter is a List, it then provides List assertions, note that it will use Item's equals method to compare Item.
Generated assertions are limited (it can't guess what you really want !) so what I would do is to add the generated CartAssert to your source control and change it to suit your needs.
Is it possible to use Assertions class generated by this maven plugin inside generated assertions in the same package?
f.e. If we have Cart class and Item class.
public class Cart {
private List items;
}
public class Item {
private String name;
private Integer quantity;
...
}
So method in CartAssert.assertThat(List items) uses ItemAssert for comparing items. Right now standard Assertions class is used.
The text was updated successfully, but these errors were encountered: