hudson.plugins.analysis.test
Class BuildResultTest<T extends hudson.plugins.analysis.core.BuildResult>

java.lang.Object
  extended by hudson.plugins.analysis.test.AbstractEnglishLocaleTest
      extended by hudson.plugins.analysis.test.BuildResultTest<T>
Type Parameters:
T - type of the result to test

public abstract class BuildResultTest<T extends hudson.plugins.analysis.core.BuildResult>
extends AbstractEnglishLocaleTest

Tests the class BuildResultTest.


Constructor Summary
BuildResultTest()
           
 
Method Summary
 void checkThatZeroWarningsIsUpdated()
          Verifies that the zero warnings since build counter is correctly propagated from build to build.
 void checkZeroWarningsCounterInitialization()
          Verifies that the zero warnings since build counter is correctly initialized in the beginning.
 void checkZeroWarningsCounterInitializationStartUnstable()
          Verifies that the zero warnings since build counter is correctly initialized in the beginning.
protected abstract  T createBuildResult(hudson.model.AbstractBuild<?,?> build, hudson.plugins.analysis.core.ParserResult project, hudson.plugins.analysis.core.BuildHistory history)
          Creates the build result under test.
protected  void verifyHighScoreMessage(int expectedZeroWarningsBuildNumber, boolean expectedIsNewHighScore, long expectedHighScore, long gap, T result)
          Verifies the highscore message.
 
Methods inherited from class hudson.plugins.analysis.test.AbstractEnglishLocaleTest
initializeLocale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildResultTest

public BuildResultTest()
Method Detail

checkZeroWarningsCounterInitializationStartUnstable

public void checkZeroWarningsCounterInitializationStartUnstable()
Verifies that the zero warnings since build counter is correctly initialized in the beginning.


checkThatZeroWarningsIsUpdated

public void checkThatZeroWarningsIsUpdated()
Verifies that the zero warnings since build counter is correctly propagated from build to build.


checkZeroWarningsCounterInitialization

public void checkZeroWarningsCounterInitialization()
Verifies that the zero warnings since build counter is correctly initialized in the beginning.


verifyHighScoreMessage

protected void verifyHighScoreMessage(int expectedZeroWarningsBuildNumber,
                                      boolean expectedIsNewHighScore,
                                      long expectedHighScore,
                                      long gap,
                                      T result)
Verifies the highscore message.

Parameters:
expectedZeroWarningsBuildNumber - expected build number of last zero warnings build
expectedIsNewHighScore - expected value of is highscore flag
expectedHighScore - expected highscore time
gap - gap of msec to reach highscore
result - the actual result to verify

createBuildResult

protected abstract T createBuildResult(hudson.model.AbstractBuild<?,?> build,
                                       hudson.plugins.analysis.core.ParserResult project,
                                       hudson.plugins.analysis.core.BuildHistory history)
Creates the build result under test.

Parameters:
build - the current build
project - the project of the current build
history - the history of build results of the associated plug-in
Returns:
the build result under test


Copyright © 2004-2012. All Rights Reserved.