TestAccount: rename getEmailAddress() to getNameEmail()

The getEmailAddress() returns "name <login@host>" while an email
address is often interpreted as "login@host"

Change-Id: Icf4d825d1618dea547f546d83af724bfe210da9d
This commit is contained in:
Han-Wen Nienhuys
2020-02-25 17:22:45 +01:00
parent 813f3aa62a
commit 419eaec4cf
14 changed files with 47 additions and 46 deletions

View File

@@ -16,6 +16,7 @@ package com.google.gerrit.mail;
import com.google.gerrit.common.Nullable;
/** Represents an address (name + email) in an email message. */
public class Address {
public static Address parse(String in) {
final int lt = in.indexOf('<');