Re: Review Request: Added unit test cases for api/commands

2012-12-20 Thread Meghna Kale
e-mail. To reply, visit: https://reviews.apache.org/r/8355/#review14730 ------- On Dec. 6, 2012, 10:25 a.m., Meghna Kale wrote: > > --- > This is an aut

Re: Review Request: Added Unit test cases for com.cloud.api.commands

2012-12-13 Thread Meghna Kale
This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/8545/#review14428 --- On Dec. 12, 2012, 10:56 a.m., Meghna Kale wrote: > > --- >

Review Request: Added Unit test cases for com.cloud.api.commands

2012-12-12 Thread Meghna Kale
PRE-CREATION api/test/src/com/cloud/api/commands/test/CreatePortForwardingRuleCmdTest.java PRE-CREATION api/test/src/com/cloud/api/commands/test/CreatePrivateGatewayCmdTest.java PRE-CREATION Diff: https://reviews.apache.org/r/8545/diff/ Testing --- Thanks, Meghna Kale

Re: Review Request: Added unit test cases for api/commands

2012-12-06 Thread Meghna Kale
check whether the values passed are getting persisted to db. - Meghna --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/8355/#review14047 -------

Re: Review Request: Added unit test cases for api/commands

2012-12-06 Thread Meghna Kale
: https://reviews.apache.org/r/8355/diff/ Testing --- Thanks, Meghna Kale

Review Request: Added unit test cases for api/commands

2012-12-05 Thread Meghna Kale
/CreateAutoScaleVmProfileCmdTest.java PRE-CREATION api/test/src/com/cloud/api/commands/test/CreateConditionCmdTest.java PRE-CREATION api/test/src/com/cloud/api/commands/test/CreateCounterCmdTest.java PRE-CREATION Diff: https://reviews.apache.org/r/8355/diff/ Testing --- Thanks, Meghna Kale

Need help for api/commands test cases

2012-12-04 Thread Meghna Kale
Hi there, While writing the unit test cases for api/commands there is a call to a static method of class UserContext (UserContext.current().setEventDetails("Vm Id: " +getVirtualMachineId()+ " ISO Id: "+getId());). I’m unable to mock this static class. I’m using Mockito 1.9.5 for unit testing ,

Re: Review Request: Test cases for com.cloud.api.commands using Mockito.

2012-11-19 Thread Meghna Kale
://reviews.apache.org/r/7966/diff/ Testing --- Tested with the maven test cases. Thanks, Meghna Kale

Re: Review Request: Test cases for com.cloud.api.commands using Mockito.

2012-11-19 Thread Meghna Kale
://reviews.apache.org/r/7966/diff/ Testing --- Tested with the maven test cases. Thanks, Meghna Kale

Re: Review Request: Test cases for com.cloud.api.commands using Mockito.

2012-11-09 Thread Meghna Kale
://reviews.apache.org/r/7966/diff/ Testing --- Tested with the maven test cases. Thanks, Meghna Kale

Re: Review Request: Test cases for com.cloud.api.commands using Mockito.

2012-11-09 Thread Meghna Kale
--- Tested with the maven test cases. Thanks, Meghna Kale

Re: Review Request: Test cases for com.cloud.api.commands using Mockito.

2012-11-08 Thread Meghna Kale
-CREATION Diff: https://reviews.apache.org/r/7966/diff/ Testing --- Tested with the maven test cases. Thanks, Meghna Kale

Review Request: Test cases for com.cloud.api.commands using Mockito.

2012-11-08 Thread Meghna Kale
/ActivateProjectCmdTest.java PRE-CREATION api/test/com/cloud/api/commands/AddAccountToProjectCmdTest.java PRE-CREATION api/test/com/cloud/api/commands/AddClusterCmdTest.java PRE-CREATION Diff: https://reviews.apache.org/r/7966/diff/ Testing --- Tested with the maven test cases. Thanks, Meghna Kale

RE: need help for test cases of api/commands

2012-10-31 Thread Meghna Kale
Assert.assertEquals(2L, activateProjectCmd.getEntityOwnerId()); } } - Meghna. -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

RE: need help for test cases of api/commands

2012-10-30 Thread Meghna Kale
, 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" wrote: >_projectService = >ComponentLocator.inject(MockProjectServiceImpl.class); When you do this, the _proj

RE: need help for test cases of api/commands

2012-10-30 Thread Meghna Kale
Tuesday, October 30, 2012 11:30 PM To: Alex Huang; Meghna Kale Cc: CloudStack DeveloperList Subject: Re: need help for test cases of api/commands I think Meghna's problem is that she has to mock the Project interface since the DAO returns Project instead of a concrete class ProjectVO. If we use

RE: need help for test cases of api/commands

2012-10-29 Thread Meghna Kale
use a framework like Mockito? On 10/29/12 11:29 AM, "Meghna Kale" wrote: >Alex, > >A method from ActivateProjectCmd.java, the projectService call. > > @Override > >public long getEntityOwnerId() { > >Project project= _projectService.getP

Re: need help for test cases of api/commands

2012-10-29 Thread Meghna Kale
Alex Huang wrote: > Meghna, > > Can you give an example of which call you're talking about and point out > the specific line of code you're having problem with? > > Thanks. > > --Alex > > > -Original Message- > > From: Meghna Kale [mailto:me

need help for test cases of api/commands

2012-10-29 Thread Meghna Kale
Hi All, I was writing some test cases for the API layer api\src\com\cloud\api\commands. I facing some issue can someone help me. There are some service layer calls in the classes , I tried to mock the service layer. The Service layer internally calls the DAO, rather than calling the mock DA

[jira] [Closed] (CLOUDSTACK-229) Getting started with CloudStack

2012-09-27 Thread Meghna Kale (JIRA)
[ https://issues.apache.org/jira/browse/CLOUDSTACK-229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Meghna Kale closed CLOUDSTACK-229. -- Resolution: Invalid > Getting started with CloudSt

[jira] [Created] (CLOUDSTACK-229) Getting started with CloudStack

2012-09-27 Thread Meghna Kale (JIRA)
Meghna Kale created CLOUDSTACK-229: -- Summary: Getting started with CloudStack Key: CLOUDSTACK-229 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-229 Project: CloudStack Issue Type