X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-api%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fapi%2FIdentityAttributeRefTest.java;h=b3c2d7461b5a553168aa0b14337ac6ad29161834;hp=9cb64c5cc8987d85584f8ada4640edfe2406ad21;hb=c65916d075142dd937cb67e5128a87c05616b834;hpb=e8d56c4814a987cc0d52dc7e5c30947d30183446 diff --git a/opendaylight/config/config-api/src/test/java/org/opendaylight/controller/config/api/IdentityAttributeRefTest.java b/opendaylight/config/config-api/src/test/java/org/opendaylight/controller/config/api/IdentityAttributeRefTest.java index 9cb64c5cc8..b3c2d7461b 100644 --- a/opendaylight/config/config-api/src/test/java/org/opendaylight/controller/config/api/IdentityAttributeRefTest.java +++ b/opendaylight/config/config-api/src/test/java/org/opendaylight/controller/config/api/IdentityAttributeRefTest.java @@ -1,3 +1,11 @@ +/* + * 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; @@ -47,10 +55,10 @@ public class IdentityAttributeRefTest { @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