(no commit message)
[utils] / system / general / src / test / java / org / wamblee / system / adapters / ConstructorConfigurationTest.java
index d1ced96f9b7effb7f3c320203f3cacf0c56cf529..3e5f5aa42dc685c4f040cd8062ef2494918a388b 100644 (file)
@@ -12,7 +12,7 @@
  * 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.adapters;
 
 import java.util.List;
@@ -55,6 +55,7 @@ public class ConstructorConfigurationTest extends AdapterTestCase {
         try {
             ConstructorConfiguration config = new ConstructorConfiguration(
                 X2.class).greedy();
+            ignoredVariable(config);
         } catch (SystemAssemblyException e) {
             // e.printStackTrace();
             return;
@@ -63,6 +64,10 @@ public class ConstructorConfigurationTest extends AdapterTestCase {
         fail();
     }
 
+    private static void ignoredVariable(Object aObject) {
+        // for findbugs.
+    }
+
     public void testSpecificConstructor() {
         ConstructorConfiguration config = new ConstructorConfiguration(X2.class)
             .select(String.class);
@@ -90,9 +95,8 @@ public class ConstructorConfigurationTest extends AdapterTestCase {
         Scope scope = getScope();
         config.create(scope);
 
-        AssertionUtils.assertEquals(new String[] { "x1(bla)" },
-            AdapterTestCase.getEventTracker().getEvents(Thread.currentThread())
-                .toArray());
+        AssertionUtils.assertEquals(new String[] { "x1(bla)" }, AdapterTestCase
+            .getEventTracker().getEvents(Thread.currentThread()).toArray());
     }
 
     public void testOptionalValueProvided() {
@@ -133,7 +137,6 @@ public class ConstructorConfigurationTest extends AdapterTestCase {
     public void testIgnoredNonPublic() {
         ConstructorConfiguration config = new ConstructorConfiguration(X3.class)
             .greedy();
-        List<RequiredInterface> required = config.getRequiredInterfaces();
         assertEquals(0, config.getParameters().getTypes().length);
     }