+/*
+ * Copyright (c) 2014, 2017 Cisco Systems, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
package org.opendaylight.controller.config.api;
import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
+
import org.junit.Assert;
import org.junit.Test;
import org.opendaylight.yangtools.yang.binding.BaseIdentity;
@Test
public void testResolveIdentity() throws Exception {
DependencyResolver res = mock(DependencyResolver.class);
- IdentityAttributeRef a = new IdentityAttributeRef("abcd");
- doReturn(SubIdentity.class).when(res).resolveIdentity(a, Identity.class);
- a.resolveIdentity(res, Identity.class);
- verify(res).resolveIdentity(a, Identity.class);
+ IdentityAttributeRef identityAttributeRef = new IdentityAttributeRef("abcd");
+ doReturn(SubIdentity.class).when(res).resolveIdentity(identityAttributeRef, Identity.class);
+ identityAttributeRef.resolveIdentity(res, Identity.class);
+ verify(res).resolveIdentity(identityAttributeRef, Identity.class);
}
@Test