Search in sources :

Example 1 with Ratio

use of hudson.plugins.cobertura.Ratio in project phabricator-jenkins-plugin by uber.

the class CoberturaCoverageProviderTest method getMockResult.

private CoverageResult getMockResult() {
    Ratio ratio = Ratio.create(75.0f, 100.0f);
    CoverageResult result = mock(CoverageResult.class);
    when(result.getCoverage(CoverageMetric.LINE)).thenReturn(ratio);
    return result;
}
Also used : Ratio(hudson.plugins.cobertura.Ratio) CoverageResult(hudson.plugins.cobertura.targets.CoverageResult)

Example 2 with Ratio

use of hudson.plugins.cobertura.Ratio in project phabricator-jenkins-plugin by uber.

the class CoberturaPluginCoverageProviderTest method getMockResult.

private CoverageResult getMockResult() {
    Ratio ratio = Ratio.create(75.0f, 100.0f);
    CoverageResult result = mock(CoverageResult.class);
    when(result.getCoverage(CoverageMetric.LINE)).thenReturn(ratio);
    return result;
}
Also used : Ratio(hudson.plugins.cobertura.Ratio) CoverageResult(hudson.plugins.cobertura.targets.CoverageResult)

Aggregations

Ratio (hudson.plugins.cobertura.Ratio)2 CoverageResult (hudson.plugins.cobertura.targets.CoverageResult)2