mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Fix two more Java 7 missing generic type errors
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=154086209
This commit is contained in:
parent
e19386779c
commit
b15d715dc0
1 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ public class FlowReporterTest extends ShardableTestCase {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testRecordToLogs_metadata_notResourceFlow_noResourceTypeOrTld() throws Exception {
|
public void testRecordToLogs_metadata_notResourceFlow_noResourceTypeOrTld() throws Exception {
|
||||||
when(flowReporter.eppInput.getResourceType()).thenReturn(Optional.absent());
|
when(flowReporter.eppInput.getResourceType()).thenReturn(Optional.<String>absent());
|
||||||
flowReporter.recordToLogs();
|
flowReporter.recordToLogs();
|
||||||
Map<String, Object> json =
|
Map<String, Object> json =
|
||||||
parseJsonMap(findLogMessageByPrefix(handler, "FLOW-LOG-SIGNATURE-METADATA: "));
|
parseJsonMap(findLogMessageByPrefix(handler, "FLOW-LOG-SIGNATURE-METADATA: "));
|
||||||
|
@ -174,7 +174,7 @@ public class FlowReporterTest extends ShardableTestCase {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testRecordToLogs_metadata_multipleTargetIds_uniqueTldSet() throws Exception {
|
public void testRecordToLogs_metadata_multipleTargetIds_uniqueTldSet() throws Exception {
|
||||||
when(flowReporter.eppInput.getSingleTargetId()).thenReturn(Optional.absent());
|
when(flowReporter.eppInput.getSingleTargetId()).thenReturn(Optional.<String>absent());
|
||||||
when(flowReporter.eppInput.getTargetIds())
|
when(flowReporter.eppInput.getTargetIds())
|
||||||
.thenReturn(ImmutableList.of("target.co.uk", "foo.uk", "bar.uk", "baz.com"));
|
.thenReturn(ImmutableList.of("target.co.uk", "foo.uk", "bar.uk", "baz.com"));
|
||||||
flowReporter.recordToLogs();
|
flowReporter.recordToLogs();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue