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)
          Creates the build result under test.
protected abstract  T createBuildResult(hudson.model.AbstractBuild<?,?> build, hudson.plugins.analysis.core.ParserResult project, T previous)
          Creates the build result under test.
protected abstract  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

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.


checkZeroWarningsCounterInitializationStartUnstable

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


verifyHighScoreMessage

protected abstract 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)
Creates the build result under test.

Parameters:
build - the current build
project - the project of the current build
Returns:
the build result under test

createBuildResult

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

Parameters:
build - the current build
project - the project of the current build
previous - the result of the previous build
Returns:
the build result under test


Copyright © 2010. All Rights Reserved.