* 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;
try {
ConstructorConfiguration config = new ConstructorConfiguration(
X2.class).greedy();
+ ignoredVariable(config);
} catch (SystemAssemblyException e) {
// e.printStackTrace();
return;
fail();
}
+ private static void ignoredVariable(Object aObject) {
+ // for findbugs.
+ }
+
public void testSpecificConstructor() {
ConstructorConfiguration config = new ConstructorConfiguration(X2.class)
.select(String.class);
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() {
public void testIgnoredNonPublic() {
ConstructorConfiguration config = new ConstructorConfiguration(X3.class)
.greedy();
- List<RequiredInterface> required = config.getRequiredInterfaces();
assertEquals(0, config.getParameters().getTypes().length);
}