@Test public void getPowerUsagePerApp() { SLAAgreementHelper helper = new SLAAgreementHelper(slaAgreement2Text); double powerUsage = helper.getPowerUsagePerApp(); assertEquals(21.0, powerUsage, 0.0001); helper = new SLAAgreementHelper(slaAgreementText); powerUsage = helper.getPowerUsagePerApp(); assertEquals(0.0, powerUsage, 0.0001); }
public double getPowerUsagePerApp() { return getPowerUsage(powerUsagePerApp); }
SLAAgreementHelper { public double getPowerUsagePerApp() { return getPowerUsage(powerUsagePerApp); } }
SLAAgreementHelper { public double getPowerUsagePerApp() { return getPowerUsage(powerUsagePerApp); } SLAAgreementHelper(String slaString); }
SLAAgreementHelper { public double getPowerUsagePerApp() { return getPowerUsage(powerUsagePerApp); } SLAAgreementHelper(String slaString); SLA getSla(); double getPowerUsagePerApp(); String getPowerUsagePerAppUnits(); double getPowerUsagePerOVFId(String ovfId); String getPowerUnitsPerOVFId(String ovfId); }
SLAAgreementHelper { public double getPowerUsagePerApp() { return getPowerUsage(powerUsagePerApp); } SLAAgreementHelper(String slaString); SLA getSla(); double getPowerUsagePerApp(); String getPowerUsagePerAppUnits(); double getPowerUsagePerOVFId(String ovfId); String getPowerUnitsPerOVFId(String ovfId);  }