Fixed unit tests based on recent changes in the Vnmc resource code

This commit is contained in:
Koushik Das 2013-04-15 15:20:37 +05:30
parent f166f2d0bf
commit 735c4c8955
2 changed files with 4 additions and 4 deletions

View File

@ -48,14 +48,14 @@ public class DeleteCiscoVnmcResourceCmd extends BaseCmd {
/////////////////////////////////////////////////////
@Parameter(name=ApiConstants.RESOURCE_ID, type=CommandType.UUID, required=true, entityType=CiscoVnmcResourceResponse.class, description="Cisco Vnmc resource ID")
private Long CiscoVnmcResourceId;
private Long ciscoVnmcResourceId;
/////////////////////////////////////////////////////
/////////////////// Accessors ///////////////////////
/////////////////////////////////////////////////////
public Long getCiscoVnmcResourceId() {
return CiscoVnmcResourceId;
return ciscoVnmcResourceId;
}
/////////////////////////////////////////////////////

View File

@ -213,7 +213,7 @@ public class CiscoVnmcResourceTest {
anyString(), anyString(), anyString())).thenReturn(true);
when(_connection.createTenantVDCAclRuleForDNat(anyString(),
anyString(), anyString(), anyString())).thenReturn(true);
when(_connection.associateNatPolicySet(anyString())).thenReturn(true);
when(_connection.associateAclPolicySet(anyString())).thenReturn(true);
Answer answer = _resource.executeRequest(cmd);
System.out.println(answer.getDetails());
@ -253,7 +253,7 @@ public class CiscoVnmcResourceTest {
when(_connection.createTenantVDCAclRuleForPF(anyString(),
anyString(), anyString(), anyString(),
anyString(), anyString(), anyString())).thenReturn(true);
when(_connection.associateNatPolicySet(anyString())).thenReturn(true);
when(_connection.associateAclPolicySet(anyString())).thenReturn(true);
Answer answer = _resource.executeRequest(cmd);
System.out.println(answer.getDetails());