hudson.plugins.analysis.test
Class AbstractHealthDescriptorTest

java.lang.Object
  extended by hudson.plugins.analysis.test.AbstractEnglishLocaleTest
      extended by hudson.plugins.analysis.test.AbstractHealthDescriptorTest

public abstract class AbstractHealthDescriptorTest
extends AbstractEnglishLocaleTest

Abstract test case for AbstractHealthDescriptor.

Author:
Ulli Hafner

Field Summary
protected static String WRONG_DESCRIPTION
          Error message.
 
Constructor Summary
AbstractHealthDescriptorTest()
           
 
Method Summary
protected abstract  hudson.plugins.analysis.core.AbstractHealthDescriptor createHealthDescriptor(hudson.plugins.analysis.core.HealthDescriptor healthDescriptor)
          Factory method to create the health descriptor under test.
 void testConversionOfHealthiness()
          Tests the method AbstractHealthDescriptor.getHealthyAnnotations() and AbstractHealthDescriptor.getUnHealthyAnnotations().
 void testConversionOfThresholds()
          Tests the method AbstractHealthDescriptor.getLowerBoundOfThresholds().
 void testHealthyThresholds()
          Tests the method AbstractHealthDescriptor.isThresholdEnabled().
 void testThresholds()
          Tests the method AbstractHealthDescriptor.isThresholdEnabled().
 void verifyContractOfHealthy()
          Tests the method AbstractHealthDescriptor.getHealthyAnnotations().
 void verifyContractOfUnHealthy()
          Tests the method AbstractHealthDescriptor.getHealthyAnnotations().
 
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
 

Field Detail

WRONG_DESCRIPTION

protected static final String WRONG_DESCRIPTION
Error message.

See Also:
Constant Field Values
Constructor Detail

AbstractHealthDescriptorTest

public AbstractHealthDescriptorTest()
Method Detail

testThresholds

public void testThresholds()
Tests the method AbstractHealthDescriptor.isThresholdEnabled().


testHealthyThresholds

public void testHealthyThresholds()
Tests the method AbstractHealthDescriptor.isThresholdEnabled().


testConversionOfThresholds

public void testConversionOfThresholds()
Tests the method AbstractHealthDescriptor.getLowerBoundOfThresholds().


testConversionOfHealthiness

public void testConversionOfHealthiness()
Tests the method AbstractHealthDescriptor.getHealthyAnnotations() and AbstractHealthDescriptor.getUnHealthyAnnotations().


verifyContractOfHealthy

public void verifyContractOfHealthy()
Tests the method AbstractHealthDescriptor.getHealthyAnnotations().


verifyContractOfUnHealthy

public void verifyContractOfUnHealthy()
Tests the method AbstractHealthDescriptor.getHealthyAnnotations().


createHealthDescriptor

protected abstract hudson.plugins.analysis.core.AbstractHealthDescriptor createHealthDescriptor(hudson.plugins.analysis.core.HealthDescriptor healthDescriptor)
Factory method to create the health descriptor under test.

Parameters:
healthDescriptor - the basis health descriptor mock
Returns:
the descriptor under test


Copyright © 2004-2012. All Rights Reserved.