> +
> +
> +   @Test
> +   public void testApplyWithGroup() {
> +      NovaSecurityGroupInZoneToSecurityGroup parser = createGroupParser();
> +
> +      SecurityGroupInZone origGroup = new 
> SecurityGroupInZone(securityGroupWithGroup(), zone.getId());
> +
> +      SecurityGroup newGroup = parser.apply(origGroup);
> +
> +      assertEquals(newGroup.getId(), origGroup.getSecurityGroup().getId());
> +      assertEquals(newGroup.getProviderId(), 
> origGroup.getSecurityGroup().getId());
> +      assertEquals(newGroup.getName(), 
> origGroup.getSecurityGroup().getName());
> +      assertEquals(newGroup.getOwnerId(), 
> origGroup.getSecurityGroup().getTenantId());
> +      assertEquals(newGroup.getIpPermissions(), 
> ImmutableSet.copyOf(transform(origGroup.getSecurityGroup().getRules(), 
> ruleConverter)));
> +      assertEquals(newGroup.getLocation().getId(), origGroup.getZone());

Those are right, aren't they? newGroup's the actual, origGroup's the expected.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/144/files#r6353634

Reply via email to