Do you mean to use mock(ProjectManagerImpl.class) rather than creating
MockProjectServiceImpl.java

In this case
projectService = ComponentLocator.inject(mock(ProjectManagerImpl.class));


-----Original Message-----
From: Chiradeep Vittal [mailto:chiradeep.vit...@citrix.com]
Sent: Wednesday, October 31, 2012 12:50 AM
To: Meghna Kale; Alex Huang
Cc: CloudStack DeveloperList
Subject: Re: need help for test cases of api/commands



On 10/30/12 12:12 PM, "Meghna Kale" <meghna.k...@sungard.com> wrote:

>_projectService =
>ComponentLocator.inject(MockProjectServiceImpl.class);

When you do this,  the _projectService is no longer a Mockito object.

Reply via email to