You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cz...@apache.org on 2015/09/09 08:56:09 UTC

svn commit: r1701911 - /felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/Felix4984Test.java

Author: cziegeler
Date: Wed Sep  9 06:56:08 2015
New Revision: 1701911

URL: http://svn.apache.org/r1701911
Log:
Add missing license header

Modified:
    felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/Felix4984Test.java

Modified: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/Felix4984Test.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/Felix4984Test.java?rev=1701911&r1=1701910&r2=1701911&view=diff
==============================================================================
--- felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/Felix4984Test.java (original)
+++ felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/Felix4984Test.java Wed Sep  9 06:56:08 2015
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.apache.felix.scr.integration;
 
 import static junit.framework.Assert.assertEquals;
@@ -28,7 +46,7 @@ public class Felix4984Test extends Compo
     }
 
     /**
-     * A > 1.1 > B > 0..n > A 
+     * A > 1.1 > B > 0..n > A
      * This test validates that A is bound to one B instance. See FELIX-4984 for more informations.
      */
     @Test
@@ -36,8 +54,8 @@ public class Felix4984Test extends Compo
     {
         Bundle bundle = findABBundle(bundleContext);
         bundle.stop();
-        
-        for (int i = 0; i < 1000; i ++) {   
+
+        for (int i = 0; i < 1000; i ++) {
         	bundle.start();
 
             String componentNameA = "felix4984.A.1.1.dynamic";
@@ -65,7 +83,7 @@ public class Felix4984Test extends Compo
             bundle.stop();
         }
     }
-    
+
     private Bundle findABBundle(BundleContext ctx) {
         for (Bundle b : ctx.getBundles()) {
             if (b.getSymbolicName().equals("simplecomponent")) {
@@ -74,7 +92,7 @@ public class Felix4984Test extends Compo
         }
         throw new IllegalStateException("bundle \"simplecomponent\" not found");
     }
-    
+
     private void assertABoundToOneB(A a) {
         if (a.getBs().size() != 1) {
             log.log(LogService.LOG_WARNING, "detected problem ...");