mirror of
https://github.com/google/nomulus.git
synced 2025-07-02 17:23:32 +02:00
Remove some unnecessary uses of MockitoJUnitRunner, which is discouraged
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=153719402
This commit is contained in:
parent
a259b42b26
commit
89b3e9c55b
15 changed files with 61 additions and 102 deletions
|
@ -23,6 +23,7 @@ import static google.registry.testing.DatastoreHelper.persistResource;
|
|||
import static org.joda.time.DateTimeZone.UTC;
|
||||
import static org.junit.Assert.fail;
|
||||
import static org.mockito.Matchers.any;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.verify;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
|
@ -61,11 +62,10 @@ import org.junit.Before;
|
|||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.mockito.Mock;
|
||||
import org.mockito.runners.MockitoJUnitRunner;
|
||||
import org.junit.runners.JUnit4;
|
||||
|
||||
/** Unit tests for {@link RdeImportUtils} */
|
||||
@RunWith(MockitoJUnitRunner.class)
|
||||
@RunWith(JUnit4.class)
|
||||
public class RdeImportUtilsTest extends ShardableTestCase {
|
||||
|
||||
private static final ByteSource DEPOSIT_XML = RdeImportsTestData.get("deposit_full.xml");
|
||||
|
@ -84,8 +84,7 @@ public class RdeImportUtilsTest extends ShardableTestCase {
|
|||
@Rule
|
||||
public final ExceptionRule thrown = new ExceptionRule();
|
||||
|
||||
@Mock
|
||||
private GcsUtils gcsUtils;
|
||||
private final GcsUtils gcsUtils = mock(GcsUtils.class);
|
||||
|
||||
private RdeImportUtils rdeImportUtils;
|
||||
private FakeClock clock;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue