git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[utils]
/
system
/
general
/
src
/
test
/
java
/
org
/
wamblee
/
system
/
adapters
/
ConstructorConfigurationTest.java
diff --git
a/system/general/src/test/java/org/wamblee/system/adapters/ConstructorConfigurationTest.java
b/system/general/src/test/java/org/wamblee/system/adapters/ConstructorConfigurationTest.java
index d1ced96f9b7effb7f3c320203f3cacf0c56cf529..ee57526f3aa1db0c2a66ea3cb9f25a2bb3469697 100644
(file)
--- a/
system/general/src/test/java/org/wamblee/system/adapters/ConstructorConfigurationTest.java
+++ b/
system/general/src/test/java/org/wamblee/system/adapters/ConstructorConfigurationTest.java
@@
-55,6
+55,7
@@
public class ConstructorConfigurationTest extends AdapterTestCase {
try {
ConstructorConfiguration config = new ConstructorConfiguration(
X2.class).greedy();
try {
ConstructorConfiguration config = new ConstructorConfiguration(
X2.class).greedy();
+ ignoredVariable(config);
} catch (SystemAssemblyException e) {
// e.printStackTrace();
return;
} catch (SystemAssemblyException e) {
// e.printStackTrace();
return;
@@
-62,6
+63,10
@@
public class ConstructorConfigurationTest extends AdapterTestCase {
fail();
}
fail();
}
+
+ private static void ignoredVariable(Object aObject) {
+ // for findbugs.
+ }
public void testSpecificConstructor() {
ConstructorConfiguration config = new ConstructorConfiguration(X2.class)
public void testSpecificConstructor() {
ConstructorConfiguration config = new ConstructorConfiguration(X2.class)
@@
-133,7
+138,6
@@
public class ConstructorConfigurationTest extends AdapterTestCase {
public void testIgnoredNonPublic() {
ConstructorConfiguration config = new ConstructorConfiguration(X3.class)
.greedy();
public void testIgnoredNonPublic() {
ConstructorConfiguration config = new ConstructorConfiguration(X3.class)
.greedy();
- List<RequiredInterface> required = config.getRequiredInterfaces();
assertEquals(0, config.getParameters().getTypes().length);
}
assertEquals(0, config.getParameters().getTypes().length);
}