(no commit message)
[utils] / system / general / src / test / java / org / wamblee / system / container / ContainerTest.java
index 97c571957aef96716a90f207a259d265aa6f4f5f..cbd623e9e963e3ba050552615905da069b455685 100644 (file)
  * 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.wamblee.system.container;
 
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
 import junit.framework.TestCase;
 
 import org.wamblee.general.Pair;
-
 import org.wamblee.system.core.Component;
 import org.wamblee.system.core.DefaultProvidedInterface;
 import org.wamblee.system.core.DefaultRequiredInterface;
@@ -29,15 +32,9 @@ import org.wamblee.system.core.RequiredInterface;
 import org.wamblee.system.core.Scope;
 import org.wamblee.system.core.StringComponent;
 import org.wamblee.system.core.SystemAssemblyException;
-
 import org.wamblee.test.AssertionUtils;
 import org.wamblee.test.EventTracker;
 
-import java.io.Serializable;
-
-import java.util.ArrayList;
-import java.util.List;
-
 /**
  * 
  * @author $author$
@@ -222,6 +219,9 @@ public class ContainerTest extends TestCase {
             Component<?> comp = new Application();
             Container system = new Container("top").addComponent(comp);
             Container system2 = new Container("top2").addComponent(comp);
+
+            ignoredVariable(system);
+            ignoredVariable(system2);
         } catch (SystemAssemblyException e) {
             return;
         }
@@ -229,6 +229,10 @@ public class ContainerTest extends TestCase {
         fail();
     }
 
+    private static void ignoredVariable(Object aObject) {
+        // for findbugs.
+    }
+
     public void testCompositeWithExternalDependencesProvided() {
         Component<?> environment = new Environment();
         Component<?> application = new Application();
@@ -553,7 +557,7 @@ public class ContainerTest extends TestCase {
         Scope external = new DefaultScope(new ProvidedInterface[0]);
         external.publishInterface(provided, 100);
 
-        Scope scope = container.start(external);
+        container.start(external);
     }
 
     public void testProvidedInterfaces() {
@@ -631,7 +635,7 @@ public class ContainerTest extends TestCase {
         container.getRequiredInterfaces().get(1).setProvider(x);
         container.getRequiredInterfaces().get(2).setProvider(y);
 
-        Scope runtime = container.start(externalScope);
+        container.start(externalScope);
 
         assertEquals("y-value", app.getString());
     }