mirror of
https://github.com/google/nomulus
synced 2026-09-19 22:44:26 +00:00
Use Dagger to @Inject WhoisReader instances
This is a precursor to adding metrics to WHOIS queries (as I'd like to be able to @Inject the metrics builders). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=149418018
This commit is contained in:
@@ -45,8 +45,8 @@ public class WhoisReaderTest {
|
||||
@SuppressWarnings("unchecked") // XXX: Generic abuse ftw.
|
||||
<T> T readCommand(String commandStr) throws Exception {
|
||||
return (T)
|
||||
new WhoisReader(new StringReader(commandStr), new WhoisCommandFactory(), clock.nowUtc())
|
||||
.readCommand();
|
||||
new WhoisReader(new WhoisCommandFactory(), clock.nowUtc())
|
||||
.readCommand(new StringReader(commandStr));
|
||||
}
|
||||
|
||||
void assertLoadsExampleTld(String commandString) throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user