Hi, Please carefully read https://stackoverflow.com/a/53949847/244993 and https://stackoverflow.com/a/46614216/244993
On Wednesday, May 29, 2019 at 5:46:18 PM UTC+2, [email protected] wrote: > > Hi, > > I have one void method. I am trying to write a test method for this. > > The test is getting passed. But its not getting covered with the eclemma. > > Test Method - > > @Test > public void testSetName() { > Mockito.doAnswer((i) -> { > Assert.assertEquals("123", i.getArgument(0)); > return null; > }).when(policyServiceImpl1).setName("123"); > } > > Actual Method - > > public void setName(String val) { > this.name = val; > } > > What am I doing wrong? > > Regards, > Amit Sahoo > > -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/413fba4c-53c9-42c0-8bdc-6b72e3c7fe47%40googlegroups.com.
