hudson.plugins.analysis.test
Class AnnotationDifferencerTest

java.lang.Object
  extended by hudson.plugins.analysis.test.AnnotationDifferencerTest

public abstract class AnnotationDifferencerTest
extends Object

Tests the class AnnotationDifferencer.


Constructor Summary
AnnotationDifferencerTest()
           
 
Method Summary
abstract  hudson.plugins.analysis.util.model.FileAnnotation createAnnotation(String fileName, hudson.plugins.analysis.util.model.Priority priority, String message, String category, String type, int start, int end)
          Creates a new annotation.
 void testAnnotationFilename()
          Checks whether equals works for warnings.
 void testDifferencer()
          Checks whether differencing detects single changes (new and fixed).
 void testHashCodes()
          Checks whether the hash codes are evaluated if similar warnings are part of new and fixed.
 void testWarningEquals()
          Checks whether equals works for warnings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationDifferencerTest

public AnnotationDifferencerTest()
Method Detail

createAnnotation

public abstract hudson.plugins.analysis.util.model.FileAnnotation createAnnotation(String fileName,
                                                                                   hudson.plugins.analysis.util.model.Priority priority,
                                                                                   String message,
                                                                                   String category,
                                                                                   String type,
                                                                                   int start,
                                                                                   int end)
Creates a new annotation.

Parameters:
fileName - filename of the annotation
priority - the priority
message - the message of the warning
category - the warning category
type - the identifier of the warning type
start - the first line of the line range
end - the last line of the line range
Returns:
the created annotation

testAnnotationFilename

public void testAnnotationFilename()
Checks whether equals works for warnings.


testWarningEquals

public void testWarningEquals()
Checks whether equals works for warnings.


testDifferencer

public void testDifferencer()
Checks whether differencing detects single changes (new and fixed).


testHashCodes

public void testHashCodes()
Checks whether the hash codes are evaluated if similar warnings are part of new and fixed.



Copyright © 2004-2012. All Rights Reserved.