Added more copyright headers. 90/4690/1
authorDana Kutenicsova <dkutenic@cisco.com>
Fri, 24 Jan 2014 08:55:12 +0000 (09:55 +0100)
committerDana Kutenicsova <dkutenic@cisco.com>
Fri, 24 Jan 2014 10:14:47 +0000 (11:14 +0100)
Change-Id: I57847eb1712dea936bcf79e035fe3ba5fe0b979b
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
13 files changed:
README
bgp/controller-config/src/main/resources/initial/31-bgp.xml
bgp/controller-config/src/main/resources/initial/41-bgp-example.xml
bgp/linkstate/src/main/resources/META-INF/services/org.opendaylight.protocol.bgp.parser.spi.BGPExtensionProviderActivator
bgp/linkstate/src/main/resources/META-INF/services/org.opendaylight.protocol.bgp.rib.spi.RIBExtensionProviderActivator
bgp/parser-impl/src/main/resources/META-INF/services/org.opendaylight.protocol.bgp.parser.spi.BGPExtensionProviderActivator
bgp/rib-impl/src/main/resources/META-INF/services/org.opendaylight.protocol.bgp.rib.spi.RIBExtensionProviderActivator
bgp/testtool/src/main/resources/logback.xml
integration-tests/src/test/resources/config/controller.xml
pcep/controller-config/src/main/resources/initial/32-pcep.xml
pcep/impl/src/main/resources/META-INF/services/org.opendaylight.protocol.pcep.spi.PCEPExtensionProviderActivator
programming/controller-config/src/main/resources/initial/30-programming.xml
programming/impl/src/test/java/org/opendaylight/bgpcep/programming/impl/MockedNotificationServiceWrapper.java

diff --git a/README b/README
index 7312455a36fd239453f361c2833b5d34df3e533e..9fe9685d886aa25f3edb2b556f2200e6ab8289e6 100644 (file)
--- a/README
+++ b/README
@@ -1,3 +1,9 @@
+Copyright (c) 2013 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
+
 DIRECTORY ORGANIZATION
 ======================
 
index 31adf4ccef3a11e0ff7c89c03c448ad1d0407bb4..8a349aea61b010b0b057831e8a9f350e3d8636da 100644 (file)
@@ -1,5 +1,12 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- vi: set et smarttab sw=4 tabstop=4: -->
+<!--
+      Copyright (c) 2013 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
+-->
 <snapshot>
        <required-capabilities>
                <capability>urn:opendaylight:params:xml:ns:yang:controller:bgp:parser:spi?module=config-bgp-parser-spi&amp;revision=2013-11-15</capability>
                </data>
 
        </configuration>
-</snapshot>
\ No newline at end of file
+</snapshot>
index cac6d9f46befe8bb91f6aaf76a9b1c59651e8c9b..8b6722f2fd0d78148e1936a026afdb499d7c2de6 100644 (file)
@@ -1,5 +1,12 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- vi: set et smarttab sw=4 tabstop=4: -->
+<!--
+      Copyright (c) 2013 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
+-->
 <snapshot>
        <required-capabilities>
                <capability>urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:cfg?module=config-bgp-rib&amp;revision=2013-07-01</capability>
                </data>
 
        </configuration>
-</snapshot>
\ No newline at end of file
+</snapshot>
index 8522507ce63d797d83dbaa6d6295240e332f6cf4..a640301709b18d802526eab3ee9d32aa28a2d5f9 100644 (file)
@@ -1 +1,7 @@
+# Copyright (c)2013 Cisco Systems, Inc. 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
 org.opendaylight.protocol.bgp.linkstate.BGPActivator
index 2f238017f57ddf613cfed436c4463d31d0234125..33a12a368f2c8498bcc0da9664eae1094e8871c6 100644 (file)
@@ -1 +1,7 @@
+# Copyright (c)2013 Cisco Systems, Inc. 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
 org.opendaylight.protocol.bgp.linkstate.RIBActivator
index bbe1c0a8797223617a81e98ecb3c924a99cd534a..c079dc1715714fee81f5ae05ba05d1c3362abddc 100644 (file)
@@ -1 +1,7 @@
+# Copyright (c)2013 Cisco Systems, Inc. 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
 org.opendaylight.protocol.bgp.parser.impl.BGPActivator
index bab0eec7c64f3945ad07c59d91dbcff737ee77d1..67f3f668199a572a3690611edcb31a530164eb32 100644 (file)
@@ -1 +1,7 @@
+# Copyright (c)2013 Cisco Systems, Inc. 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
 org.opendaylight.protocol.bgp.rib.impl.RIBActivator
index c30d9c2f5ea05ea999432bc93018c9c391ad77e4..eb78232f7db4860fd676eaf521b67bc9158733e9 100644 (file)
@@ -1,5 +1,12 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- vi: set et smarttab sw=4 tabstop=4: -->
+<!--
+      Copyright (c) 2013 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
+-->
 <configuration>
     <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
         <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
index a1ba48772100dfd04c403149e48242878224347a..9dc27203fad2ade7c4d672a4945d113d276da095 100644 (file)
@@ -1,4 +1,12 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!-- vi: set et smarttab sw=4 tabstop=4: -->
+<!--
+      Copyright (c) 2013 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
+-->
 <persisted-snapshots>
     <snapshots>
         <snapshot>
index 9c2b3572e36a413d4d23344071f14d99163773e7..0354686743490ae66beffb99a3b4d992d649d8bb 100644 (file)
@@ -1,5 +1,12 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- vi: set et smarttab sw=4 tabstop=4: -->
+<!--
+      Copyright (c) 2013 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
+-->
 <snapshot>
        <required-capabilities>
                <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding?module=opendaylight-md-sal-binding&amp;revision=2013-10-28</capability>
index 4ab4ba967e0b3e4ef4acf05a34224b5c501f714a..097eeed89233e2d66f5e37ff99606d1b5204dadc 100644 (file)
@@ -1,3 +1,9 @@
+# Copyright (c)2013 Cisco Systems, Inc. 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
 org.opendaylight.protocol.pcep.impl.Activator
 org.opendaylight.protocol.pcep.ietf.initiated00.CrabbeInitiatedActivator
 org.opendaylight.protocol.pcep.ietf.stateful07.StatefulActivator
index 377af92f688899b4b1ba4ffae64a0336bfa53e5e..a72431b7f4945b45b3787c67d352f680bb409761 100644 (file)
@@ -1,5 +1,12 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- vi: set et smarttab sw=4 tabstop=4: -->
+<!--
+      Copyright (c) 2013 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
+-->
 <snapshot>
        <required-capabilities>
                <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding?module=opendaylight-md-sal-binding&amp;revision=2013-10-28</capability>
@@ -45,4 +52,4 @@
                </data>
 
        </configuration>
-</snapshot>
\ No newline at end of file
+</snapshot>
index 3051508aa89822ff2b9993490d14ad61e90b65a9..3ff90518202ac8eece23a68f5c547c1e3adbf69b 100644 (file)
@@ -1,15 +1,22 @@
-/**
- * @author Maros Marsalek
+/*
+ * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
  *
- * 01 2014
- *
- * Copyright (c) 2012 by Cisco Systems, Inc.
- * 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.bgpcep.programming.impl;
 
-import com.google.common.collect.Lists;
+import static junit.framework.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
+import static org.mockito.Matchers.any;
+import static org.mockito.Mockito.doAnswer;
+import static org.mockito.Mockito.mock;
+
+import java.util.List;
+
 import junit.framework.Assert;
+
 import org.mockito.invocation.InvocationOnMock;
 import org.mockito.stubbing.Answer;
 import org.opendaylight.controller.sal.binding.api.NotificationProviderService;
@@ -18,48 +25,42 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.programm
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.programming.rev130930.InstructionStatusChanged;
 import org.opendaylight.yangtools.yang.binding.Notification;
 
-import java.util.List;
-
-import static junit.framework.Assert.assertTrue;
-import static org.junit.Assert.assertEquals;
-import static org.mockito.Matchers.any;
-import static org.mockito.Mockito.doAnswer;
-import static org.mockito.Mockito.mock;
+import com.google.common.collect.Lists;
 
 final class MockedNotificationServiceWrapper {
-       private List<Notification> publishedNotifications;
+       private final List<Notification> publishedNotifications;
 
        MockedNotificationServiceWrapper() {
-               publishedNotifications = Lists.newArrayList();
+               this.publishedNotifications = Lists.newArrayList();
        }
 
        NotificationProviderService getMockedNotificationService() {
-               NotificationProviderService mockedNotificationService = mock(NotificationProviderService.class);
+               final NotificationProviderService mockedNotificationService = mock(NotificationProviderService.class);
 
                doAnswer(new Answer() {
                        @Override
-                       public Object answer(InvocationOnMock invocation) throws Throwable {
-                               Object notif = invocation.getArguments()[0];
+                       public Object answer(final InvocationOnMock invocation) throws Throwable {
+                               final Object notif = invocation.getArguments()[0];
                                assertTrue(Notification.class.isAssignableFrom(notif.getClass()));
-                               publishedNotifications.add((Notification) notif);
+                               MockedNotificationServiceWrapper.this.publishedNotifications.add((Notification) notif);
                                return null;
                        }
                }).when(mockedNotificationService).publish(any(Notification.class));
                return mockedNotificationService;
        }
 
-       void assertNotificationsCount(int count) {
-               assertEquals(count, publishedNotifications.size());
+       void assertNotificationsCount(final int count) {
+               assertEquals(count, this.publishedNotifications.size());
        }
 
-       public void assertInstructionStatusChangedNotification(int idx, InstructionId id, InstructionStatus status) {
-               assertTrue(InstructionStatusChanged.class.isAssignableFrom(publishedNotifications.get(idx).getClass()));
-               InstructionStatusChanged firstNotification = (InstructionStatusChanged) publishedNotifications.get(idx);
+       public void assertInstructionStatusChangedNotification(final int idx, final InstructionId id, final InstructionStatus status) {
+               assertTrue(InstructionStatusChanged.class.isAssignableFrom(this.publishedNotifications.get(idx).getClass()));
+               final InstructionStatusChanged firstNotification = (InstructionStatusChanged) this.publishedNotifications.get(idx);
                assertInstructionStatusChangedNotification(id, status, firstNotification);
        }
 
-       private void assertInstructionStatusChangedNotification(InstructionId id, InstructionStatus status,
-                       InstructionStatusChanged firstNotification) {
+       private void assertInstructionStatusChangedNotification(final InstructionId id, final InstructionStatus status,
+                       final InstructionStatusChanged firstNotification) {
                Assert.assertEquals(id, firstNotification.getId());
                Assert.assertEquals(status, firstNotification.getStatus());
        }