mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 08:57:12 +02:00
Fix Nomulus build error in JDK7
The error was: error: incompatible types: Object cannot be converted to ImmutableSet<LrpTokenEntity>: .saveTokens(any()); ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=138573830
This commit is contained in:
parent
0263667dae
commit
ae69a82025
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,6 @@ import static google.registry.model.ofy.ObjectifyService.ofy;
|
||||||
import static google.registry.testing.DatastoreHelper.createTld;
|
import static google.registry.testing.DatastoreHelper.createTld;
|
||||||
import static google.registry.testing.DatastoreHelper.persistResource;
|
import static google.registry.testing.DatastoreHelper.persistResource;
|
||||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||||
import static org.mockito.Matchers.any;
|
|
||||||
import static org.mockito.Mockito.doThrow;
|
import static org.mockito.Mockito.doThrow;
|
||||||
import static org.mockito.Mockito.spy;
|
import static org.mockito.Mockito.spy;
|
||||||
|
|
||||||
|
@ -42,6 +41,7 @@ import javax.annotation.Nullable;
|
||||||
import org.joda.time.DateTime;
|
import org.joda.time.DateTime;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.mockito.Mockito;
|
||||||
|
|
||||||
/** Unit tests for {@link CreateLrpTokensCommand}. */
|
/** Unit tests for {@link CreateLrpTokensCommand}. */
|
||||||
public class CreateLrpTokensCommandTest extends CommandTestCase<CreateLrpTokensCommand> {
|
public class CreateLrpTokensCommandTest extends CommandTestCase<CreateLrpTokensCommand> {
|
||||||
|
@ -77,7 +77,7 @@ public class CreateLrpTokensCommandTest extends CommandTestCase<CreateLrpTokensC
|
||||||
.doThrow(fakeException)
|
.doThrow(fakeException)
|
||||||
.doCallRealMethod()
|
.doCallRealMethod()
|
||||||
.when(spyCommand)
|
.when(spyCommand)
|
||||||
.saveTokens(any());
|
.saveTokens(Mockito.<ImmutableSet<LrpTokenEntity>>any());
|
||||||
runCommand("--assignee=domain.tld", "--tlds=tld");
|
runCommand("--assignee=domain.tld", "--tlds=tld");
|
||||||
assertLrpTokens(
|
assertLrpTokens(
|
||||||
createToken("LRP_abcdefghijklmnop", "domain.tld", ImmutableSet.of("tld"), null, null));
|
createToken("LRP_abcdefghijklmnop", "domain.tld", ImmutableSet.of("tld"), null, null));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue