public abstract class AbstractHealthDescriptorTest extends AbstractEnglishLocaleTest
AbstractHealthDescriptor.| Modifier and Type | Field and Description |
|---|---|
protected static String |
WRONG_DESCRIPTION
Error message.
|
| Constructor and Description |
|---|
AbstractHealthDescriptorTest() |
| Modifier and Type | Method and Description |
|---|---|
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(). |
initializeLocaleprotected static final String WRONG_DESCRIPTION
public void testThresholds()
AbstractHealthDescriptor.isThresholdEnabled().public void testHealthyThresholds()
AbstractHealthDescriptor.isThresholdEnabled().public void testConversionOfThresholds()
AbstractHealthDescriptor.getLowerBoundOfThresholds().public void testConversionOfHealthiness()
AbstractHealthDescriptor.getHealthyAnnotations()
and AbstractHealthDescriptor.getUnHealthyAnnotations().public void verifyContractOfHealthy()
AbstractHealthDescriptor.getHealthyAnnotations().public void verifyContractOfUnHealthy()
AbstractHealthDescriptor.getHealthyAnnotations().protected abstract hudson.plugins.analysis.core.AbstractHealthDescriptor createHealthDescriptor(hudson.plugins.analysis.core.HealthDescriptor healthDescriptor)
healthDescriptor - the basis health descriptor mockCopyright © 2004-2017. All Rights Reserved.