'How to write tests using specification-arg-resolver? [closed]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
