findbugs
[utils] / system / general / src / test / java / org / wamblee / system / container / ContainerTest.java
index 97c571957aef96716a90f207a259d265aa6f4f5f..2721c5115ec7289747112407214e9620f310c9bc 100644 (file)
@@ -17,6 +17,7 @@ package org.wamblee.system.container;
 
 import junit.framework.TestCase;
 
+import org.junit.internal.requests.IgnoredClassRunner;
 import org.wamblee.general.Pair;
 
 import org.wamblee.system.core.Component;
@@ -222,12 +223,19 @@ 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;
         }
 
         fail();
     }
+    
+    private static void ignoredVariable(Object aObject) { 
+        // for findbugs.
+    }
 
     public void testCompositeWithExternalDependencesProvided() {
         Component<?> environment = new Environment();
@@ -553,7 +561,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 +639,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());
     }