If a property type on the entity is non-primitive (e.g. Boolean) but the argument on the query method is primitive (e.g. boolean) Spring Data Mock complains.
To Reproduce
Code to reproduce:
public class MyEntity {
private Integer id;
private Boolean property;
// getters and setters.
}
public interface MyEntityRepository<MyEntity, Integer> {
List<MyEntity> findByProperty(boolean property);
}
Mock site:
builder().mock(MyEntityRepository.class);
Expected behavior
The mock should be created without any issues.
Describe the bug
If a property type on the entity is non-primitive (e.g.
Boolean
) but the argument on the query method is primitive (e.g.boolean
) Spring Data Mock complains.To Reproduce
Code to reproduce:
Mock site:
Expected behavior The mock should be created without any issues.