public MismatchedFactoryAndClassAssistedValues(@Assisted("bar") String foo) {}
}
// Lifted from GuiceUtilTest
private MemberCollector createInjectableCollector() {
MemberCollector collector = new MemberCollector(TreeLogger.NULL);
collector.setMethodFilter(
new MemberCollector.MethodFilter() {
public boolean accept(MethodLiteral<?, Method> method) {
return method.isAnnotationPresent(Inject.class) && !method.isStatic();
}
});
collector.setFieldFilter(
new MemberCollector.FieldFilter() {
public boolean accept(FieldLiteral<?> field) {
return field.isAnnotationPresent(Inject.class) && !field.isStatic();
}
});