mirror of
https://github.com/google/nomulus
synced 2026-05-23 16:21:55 +00: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:
@@ -138,7 +138,7 @@ public class FlowReporterTest extends ShardableTestCase {
|
||||
|
||||
@Test
|
||||
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();
|
||||
Map<String, Object> json =
|
||||
parseJsonMap(findLogMessageByPrefix(handler, "FLOW-LOG-SIGNATURE-METADATA: "));
|
||||
@@ -174,7 +174,7 @@ public class FlowReporterTest extends ShardableTestCase {
|
||||
|
||||
@Test
|
||||
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())
|
||||
.thenReturn(ImmutableList.of("target.co.uk", "foo.uk", "bar.uk", "baz.com"));
|
||||
flowReporter.recordToLogs();
|
||||
|
||||
Reference in New Issue
Block a user