I am using specification arg resolver to write my controller
@Or({
@Spec(path="firstName", params="name", spec=Like.class),
@Spec(path="lastName", params="name", spec=Like.class)
})
public interface FullNameSpec extends Specification<Customer> {
}
How can we write tests for this in service layer.
I want to know how I can use any of the names(first or last) in my service class tests so that I can call the repository with different specification.