mirror of
https://github.com/google/nomulus
synced 2026-04-20 16:20:50 +00:00
Replace deprecated Truth hasMessage() method with hasMessageThat()
hasMessageThat() was added in Truth 0.32 and we are already on that version in the Nomulus release. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=153095111
This commit is contained in:
@@ -20,12 +20,11 @@ import static org.mockito.Matchers.eq;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.verify;
|
||||
import static org.mockito.Mockito.verifyZeroInteractions;
|
||||
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.common.net.MediaType;
|
||||
import google.registry.testing.ExceptionRule;
|
||||
import google.registry.tools.ServerSideCommand.Connection;
|
||||
import org.junit.Before;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.JUnit4;
|
||||
@@ -34,8 +33,6 @@ import org.junit.runners.JUnit4;
|
||||
public class LoadTestCommandTest extends CommandTestCase<LoadTestCommand> {
|
||||
Connection connection = mock(Connection.class);
|
||||
|
||||
@Rule public final ExceptionRule thrown = new ExceptionRule();
|
||||
|
||||
@Before
|
||||
public void setUp() throws Exception {
|
||||
command.setConnection(connection);
|
||||
|
||||
Reference in New Issue
Block a user