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

Junit 5 ParameterResolver extension for jfairy #87

Open
linux-china opened this issue Jun 21, 2017 · 2 comments
Open

Junit 5 ParameterResolver extension for jfairy #87

linux-china opened this issue Jun 21, 2017 · 2 comments
Assignees

Comments

@linux-china
Copy link

just like MockitoExtension to supply mock extension

   @Test
    void testMock1(@Mock Person person) {
        when(person.getName()).thenReturn("Dilbert");
    }

In jfairy, just like following:

   @Test
    void testMock1(@Faked Person person) {
          person.getFullName();
    }
@rweisleder
Copy link
Contributor

FYI, I created a small proof of concept: rweisleder/jfairy-junit-extension

@mariuszs
Copy link
Member

Thanks, I will take a look.

@mariuszs mariuszs self-assigned this Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants