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;
}
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;
}
Aggregations