Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3641

Mocking sheet in junit is giving invalid use of matchers exception

$
0
0

I'm trying to mock the below method,Actual Methodpublic List<PricingSchemesDTO> loadPricingSchemeDto(Sheet pricingSchemeSheet, List<String> errors) {}

Inside junit,when(readAndProcessPricingSchemeUtils.loadPricingSchemeDto(Mockito.any(), Mockito.any())).thenReturn(pricingSchemesDTOList);

But,this above line is giving the below exception - org.mockito.exceptions.misusing.InvalidUseOfMatchersException.

Can someone help to mock this correctly, thanks


Viewing all articles
Browse latest Browse all 3641

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>