Make more Gradle subproject tests work in IntelliJ (#1454)

This commit is contained in:
Ben McIlwain 2021-12-13 15:17:01 -05:00 committed by GitHub
parent e3e277a264
commit 6a419eaeb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 364 additions and 135 deletions

View file

@ -14,6 +14,7 @@
package google.registry.monitoring.blackbox.message;
import com.google.common.base.Joiner;
import com.google.common.collect.ImmutableMap;
import google.registry.monitoring.blackbox.exception.EppClientException;
import google.registry.monitoring.blackbox.exception.UndeterminedStateException;
@ -147,4 +148,16 @@ public class EppRequestMessage extends EppMessage implements OutboundMessageType
public String responseName() {
return expectedResponse.name();
}
/**
* Returns a String representation using the {@link #name()}, {@link #responseName()}, and {@link
* #message} (if non-null).
*
* <p>This is primarily for parameterized test case usage, which requires a sensible <code>
* toString</code> for the purposes of test method naming.
*/
@Override
public String toString() {
return Joiner.on('_').skipNulls().join(name(), responseName(), super.toString());
}
}