Hi Saneth, No. We are only using static methods in that class. So there is no need to call that private method. That was only added as suggest by sonar.
Regards, Gihan On Wed, Jun 3, 2015 at 11:58 AM, Saneth Dharmakeerthi <sane...@wso2.com> wrote: > Hi Gihan, > > Isn't that private constructor is get called by anywhere inside that > class?. > > > Thanks and Best Regards, > > Saneth Dharmakeerthi > Senior Software Engineer > WSO2, Inc. > Mobile: +94772325511 > > On Wed, Jun 3, 2015 at 11:47 AM, Gihan Anuruddha <gi...@wso2.com> wrote: > >> Hi Automation team, >> >> What we are actually looking as a code coverage stat? In my >> ServiceHolder class, I added private constructor based on sonar >> suggestion. Now, due to that I can't make my class, 100% code coverage in >> term of line, block and method. How do I overcome this problem and increase >> my code coverage percentage? >> >> COVERAGE SUMMARY FOR SOURCE FILE [ServiceHolder.java]nameline, %block, % >> method, %class, %ServiceHolder.java82% (9/11)83% (15/18)86% (6/7) >> 100% (1/1)COVERAGE BREAKDOWN BY CLASS AND METHODnameline, %block, % >> method, %class, % class ServiceHolder82% (9/11)83% (15/18) >> 86% (6/7)100% (1/1)getAnalyticsDataService (): AnalyticsDataService >> 100% (1/1)100% (2/2)100% (1/1) >> getAnalyticsEventSinkService (): AnalyticsEventSinkService100% (1/1) >> 100% (2/2)100% (1/1) getEventStreamService (): EventStreamService >> 100% (1/1)100% (2/2)100% (1/1) >> setAnalyticsDataService (AnalyticsDataService): void100% (2/2)100% (3/3) >> 100% (1/1) setAnalyticsEventSinkService (AnalyticsEventSinkService): void >> 100% (2/2)100% (3/3)100% (1/1) >> setEventStreamService (EventStreamService): void100% (2/2)100% (3/3) >> 100% (1/1) ServiceHolder (): void0% (0/2)0% (0/3)0% (0/1) >> >> >> >> ​Regards, >> Gihan​ >> >> -- >> W.G. Gihan Anuruddha >> Senior Software Engineer | WSO2, Inc. >> M: +94772272595 >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > -- W.G. Gihan Anuruddha Senior Software Engineer | WSO2, Inc. M: +94772272595
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev