mirror of
https://github.com/google/nomulus.git
synced 2025-08-01 07:26:29 +02:00
Remove some unnecessary uses of MockitoJUnitRunner, which is discouraged
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=153711358
This commit is contained in:
parent
8f05ca466f
commit
a259b42b26
16 changed files with 65 additions and 105 deletions
|
@ -16,6 +16,7 @@ package google.registry.ui.server.registrar;
|
|||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
import static org.mockito.Matchers.any;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
import com.google.appengine.api.users.UserServiceFactory;
|
||||
|
@ -30,11 +31,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 ConsoleUiAction}. */
|
||||
@RunWith(MockitoJUnitRunner.class)
|
||||
@RunWith(JUnit4.class)
|
||||
public class ConsoleUiActionTest {
|
||||
|
||||
@Rule
|
||||
|
@ -43,8 +43,7 @@ public class ConsoleUiActionTest {
|
|||
.withUserService(UserInfo.create("marla.singer@example.com", "12345"))
|
||||
.build();
|
||||
|
||||
@Mock
|
||||
private SessionUtils sessionUtils;
|
||||
private final SessionUtils sessionUtils = mock(SessionUtils.class);
|
||||
|
||||
private final FakeResponse response = new FakeResponse();
|
||||
private final ConsoleUiAction action = new ConsoleUiAction();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue