package jp.ac.nii.prl.mape.autoscaling.analysis;

import org.mockito.Mockito;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import jp.ac.nii.prl.mape.autoscaling.analysis.service.DeploymentService;

@Configuration
public class TestContext {

	@Bean
	public DeploymentService deploymentService() {
		return Mockito.mock(DeploymentService.class);
	}
}

@@ -258,16 +258,94 @@
 Service;
+%0Aimport jp.ac.nii.prl.mape.autoscaling.analysis.service.VirtualMachineService;
 %0A%0A@Confi
@@ -487,10 +487,130 @@
 ss);%0A%09%7D%0A
+%09%0A%09@Bean%0A%09public VirtualMachineService virtualMachineService() %7B%0A%09%09return Mockito.mock(VirtualMachineService.class);%0A%09%7D%0A
 %7D%0A

Add VirtualMachineController mock to testing context