Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring Repository interface not covered #279

Open
Macadoshis opened this issue Nov 6, 2015 · 0 comments
Open

Spring Repository interface not covered #279

Macadoshis opened this issue Nov 6, 2015 · 0 comments

Comments

@Macadoshis
Copy link

I know interaces are not instrumented.
Then how can we validate the coverage of Spring-Data interfaces ??

ex. :

@Repository
public interface MyObjectRepository  {
    MyObject findMyObjectByCodeAndName(String code, String name);
}
public class MyObjectRepositoryTest {

    @Autowired
    private MyObjectRepository myObjectRepository  ;

    @Test
    public void myTest() {
        myObjectRepository.findMyObjectByCodeAndName("foo","bar");  
    }
}

How do you cover such test-cases ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant