Reader small image

You're reading from  Mastering Unit Testing Using Mockito and JUnit

Product typeBook
Published inJul 2014
Publisher
ISBN-139781783982509
Edition1st Edition
Tools
Right arrow
Author (1)
Sujoy Acharya
Sujoy Acharya
author image
Sujoy Acharya

Sujoy Acharya works as a Principal Engineer with Cerner. While growing up, he pursued his interests in the fields of computer science and engineering. His hobbies are watching movies and sitcoms, playing outdoor sports, and reading books. Sujoy likes to research upcoming technologies. His major contributions are in the fields of TDD, building scalable applications, cloud services, and the Spring Framework. He has authored four books for Packt, namely, Test-Driven Development with Mockito, Mastering Unit Testing using Mockito and JUnit, Mockito Essentials, and Mockito for Spring.
Read more about Sujoy Acharya

Right arrow

Getting familiar with false positives


This section deals with the false positives. In general, a static code analysis tool analyzes a source code against a set of rules and reports a violation when it finds a violation pattern in the source code. However, when we review the pattern and find that the violation is not correct in the context, then the reported violation is a false positive.

Static analysis tools report violations, but we have to filter out correct rule sets and remove the false positive rules. The SonarQube manual code review feature enables you to review code, add comments, and flag violations as false positives. The following Sonar URL describes how to review violations and flag violations as false positives: http://www.sonarqube.org/sonar-2-8-in-screenshots/.

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Mastering Unit Testing Using Mockito and JUnit
Published in: Jul 2014Publisher: ISBN-13: 9781783982509

Author (1)

author image
Sujoy Acharya

Sujoy Acharya works as a Principal Engineer with Cerner. While growing up, he pursued his interests in the fields of computer science and engineering. His hobbies are watching movies and sitcoms, playing outdoor sports, and reading books. Sujoy likes to research upcoming technologies. His major contributions are in the fields of TDD, building scalable applications, cloud services, and the Spring Framework. He has authored four books for Packt, namely, Test-Driven Development with Mockito, Mastering Unit Testing using Mockito and JUnit, Mockito Essentials, and Mockito for Spring.
Read more about Sujoy Acharya