mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 08:57:12 +02:00
Migrate away fully from MockitoJUnitRunner
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=192291786
This commit is contained in:
parent
8f1848e32e
commit
183dae6e80
14 changed files with 134 additions and 128 deletions
|
@ -31,6 +31,7 @@ import com.google.common.reflect.TypeToken;
|
|||
import google.registry.model.poll.PollMessage;
|
||||
import google.registry.testing.AppEngineRule;
|
||||
import google.registry.testing.CertificateSamples;
|
||||
import google.registry.testing.MockitoJUnitRule;
|
||||
import google.registry.tools.params.ParameterFactory;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.File;
|
||||
|
@ -41,14 +42,14 @@ import org.junit.Before;
|
|||
import org.junit.Rule;
|
||||
import org.junit.rules.TemporaryFolder;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.mockito.runners.MockitoJUnitRunner;
|
||||
import org.junit.runners.JUnit4;
|
||||
|
||||
/**
|
||||
* Base class for all command tests.
|
||||
*
|
||||
* @param <C> the command type
|
||||
*/
|
||||
@RunWith(MockitoJUnitRunner.class)
|
||||
@RunWith(JUnit4.class)
|
||||
public abstract class CommandTestCase<C extends Command> {
|
||||
|
||||
private final ByteArrayOutputStream stdout = new ByteArrayOutputStream();
|
||||
|
@ -57,10 +58,10 @@ public abstract class CommandTestCase<C extends Command> {
|
|||
protected C command;
|
||||
|
||||
@Rule
|
||||
public final AppEngineRule appEngine = AppEngineRule.builder()
|
||||
.withDatastore()
|
||||
.withTaskQueue()
|
||||
.build();
|
||||
public final AppEngineRule appEngine =
|
||||
AppEngineRule.builder().withDatastore().withTaskQueue().build();
|
||||
|
||||
@Rule public final MockitoJUnitRule mocks = MockitoJUnitRule.create();
|
||||
|
||||
@Rule
|
||||
public TemporaryFolder tmpDir = new TemporaryFolder();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue