More testcases for multibindings, including some fairly specific tests for toString() on the Binder API
git-svn-id: https://google-guice.googlecode.com/svn/trunk@483 d779f126-a31b-0410-b53b-1d3aecad763e
diff --git a/src/com/google/inject/commands/CommandRecorder.java b/src/com/google/inject/commands/CommandRecorder.java
index e6ce8f2..a4b3307 100644
--- a/src/com/google/inject/commands/CommandRecorder.java
+++ b/src/com/google/inject/commands/CommandRecorder.java
@@ -20,9 +20,9 @@
import com.google.inject.binder.AnnotatedBindingBuilder;
import com.google.inject.binder.AnnotatedConstantBindingBuilder;
import com.google.inject.matcher.Matcher;
+import com.google.inject.spi.SourceProviders;
import static com.google.inject.spi.SourceProviders.defaultSource;
import com.google.inject.spi.TypeConverter;
-import com.google.inject.spi.SourceProviders;
import org.aopalliance.intercept.MethodInterceptor;
import java.lang.annotation.Annotation;
@@ -141,6 +141,10 @@
public T get() {
return earlyRequestsProvider.get(key);
}
+
+ @Override public String toString() {
+ return "Provider<" + key.getTypeLiteral() + ">";
+ }
};
}
@@ -152,5 +156,9 @@
TypeConverter converter) {
commands.add(new ConvertToTypesCommand(defaultSource(), typeMatcher, converter));
}
+
+ @Override public String toString() {
+ return "Binder";
+ }
}
}