samedi 27 juin 2020

How do you configure mocks before Autowired?

I want to set up mock data using Mockito before my test. However, the autowire happens before the @Before so my tests that expect data to be present is missing. Is there a way around it?

Aucun commentaire:

Enregistrer un commentaire