@Test public void intializeAppTest() { pmc.initializeApplication("x1", 222, 3); verify(ppm, times(1)).initializeApp("x1", 222, 3); }
public void initializeApplication(String applicationId, int deploymentId, int schemeId) { priceModeller.initializeApp(applicationId, deploymentId, schemeId); }
PriceModellerClient { public void initializeApplication(String applicationId, int deploymentId, int schemeId) { priceModeller.initializeApp(applicationId, deploymentId, schemeId); } }
PriceModellerClient { public void initializeApplication(String applicationId, int deploymentId, int schemeId) { priceModeller.initializeApp(applicationId, deploymentId, schemeId); } private  PriceModellerClient(); }
PriceModellerClient { public void initializeApplication(String applicationId, int deploymentId, int schemeId) { priceModeller.initializeApp(applicationId, deploymentId, schemeId); } private  PriceModellerClient(); static PriceModellerClient getInstance(); void initializeApplication(String applicationId, int deploymentId, int schemeId); void initializeApplication(String applicationName, int deploymentId, LinkedList<VMinfo> vms); double getAppPredictedCharges(int deploymentId, int schemeID, double iaaSCharges); double getAppPredictedPrice(int deploymentId, int schemeID, double iaaSCharges, long duration); double getAppTotalCharges(int deploymentId, int schemeID, double iaaSCharges); double getEventPredictedCharges(int deploymentId, 
			                               int cpu, 
			                               int ram, 
			                               double storage, 
			                               double energy, 
			                               int schemeId, 
			                               long duration, 
			                               int numberOfevents); double getEventPredictedChargesOfApp(int deplID, LinkedList<VMinfo> vms, double energy,int schemeId); double predictPriceForNextPeriod(int deplID, double duration); double predictPriceForNextHour(int depId, LinkedList<VMinfo> vms); }
PriceModellerClient { public void initializeApplication(String applicationId, int deploymentId, int schemeId) { priceModeller.initializeApp(applicationId, deploymentId, schemeId); } private  PriceModellerClient(); static PriceModellerClient getInstance(); void initializeApplication(String applicationId, int deploymentId, int schemeId); void initializeApplication(String applicationName, int deploymentId, LinkedList<VMinfo> vms); double getAppPredictedCharges(int deploymentId, int schemeID, double iaaSCharges); double getAppPredictedPrice(int deploymentId, int schemeID, double iaaSCharges, long duration); double getAppTotalCharges(int deploymentId, int schemeID, double iaaSCharges); double getEventPredictedCharges(int deploymentId, 
			                               int cpu, 
			                               int ram, 
			                               double storage, 
			                               double energy, 
			                               int schemeId, 
			                               long duration, 
			                               int numberOfevents); double getEventPredictedChargesOfApp(int deplID, LinkedList<VMinfo> vms, double energy,int schemeId); double predictPriceForNextPeriod(int deplID, double duration); double predictPriceForNextHour(int depId, LinkedList<VMinfo> vms);  }