package com.emc.ecs.managementClient;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import com.emc.ecs.common.EcsActionTest;
import com.emc.ecs.managementClient.model.NamespaceQuotaDetails;
import com.emc.ecs.serviceBroker.EcsManagementClientException;

public class NamespaceQuotaActionTest extends EcsActionTest {

    @Before
    public void setUp() throws EcsManagementClientException {
	connection.login();
    }

    @After
    public void cleanup() throws EcsManagementClientException {
	connection.logout();
    }

    @Test
    public void testApplyRemoveNamespaceQuota() throws EcsManagementClientException {
	NamespaceQuotaAction.create(connection, namespace, 10, 8);
	NamespaceQuotaDetails quota = NamespaceQuotaAction.get(connection, namespace);
	assertEquals(10, quota.getBlockSize());
	assertEquals(8, quota.getNotificationSize());
	NamespaceQuotaAction.delete(connection, namespace);
	quota = NamespaceQuotaAction.get(connection, namespace);
	assertEquals(-1, quota.getBlockSize());
	assertEquals(-1, quota.getNotificationSize());
    }

}
@@ -636,16 +636,21 @@
 eQuota()
+%0A%09   
  throws 
@@ -735,15 +735,53 @@
 ace,
+%0A%09%09new NamespaceQuotaParam(namespace,
  10, 8)
+)
 ;%0A%09N
@@ -837,33 +837,35 @@
 .get(connection,
- 
+%0A%09%09
 namespace);%0A%09ass

Update namespace quota action test to match new constructor