1 package org.opendaylight.groupbasedpolicy.base_endpoint;
3 import static org.mockito.Mockito.mock;
5 import org.junit.Assert;
6 import org.junit.Before;
8 import org.opendaylight.groupbasedpolicy.api.EndpointAugmentor;
10 public class EndpointAugmentorRegistryImplTest {
12 private EndpointAugmentorRegistryImpl epAugmentorRegistry;
13 private EndpointAugmentor epAugmentor;
17 epAugmentorRegistry = new EndpointAugmentorRegistryImpl();
18 epAugmentor = mock(EndpointAugmentor.class);
22 public void testRegisterUnregister() throws Exception {
23 epAugmentorRegistry.register(epAugmentor);
24 Assert.assertEquals(1, epAugmentorRegistry.getEndpointAugmentors().size());
26 epAugmentorRegistry.unregister(epAugmentor);
27 Assert.assertEquals(0, epAugmentorRegistry.getEndpointAugmentors().size());