X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=tests%2Forg%2Fcacert%2Fgigi%2FtestUtils%2FTestEmailReceiver.java;h=155539c798b1ed0c0e18ba7807e26b8df7610b89;hp=27b166f9667c35109839d9a4fccd404f117831fb;hb=f97a9d4028195b328b7ff4267b7b4d893eee8995;hpb=4d9a171beff072b638c4b2724f51b3192064b155 diff --git a/tests/org/cacert/gigi/testUtils/TestEmailReceiver.java b/tests/org/cacert/gigi/testUtils/TestEmailReceiver.java index 27b166f9..155539c7 100644 --- a/tests/org/cacert/gigi/testUtils/TestEmailReceiver.java +++ b/tests/org/cacert/gigi/testUtils/TestEmailReceiver.java @@ -34,15 +34,12 @@ public final class TestEmailReceiver extends EmailProvider implements Runnable, String message; - String from; - String replyto; - public TestMail(String to, String subject, String message, String from, String replyto) { + public TestMail(String to, String subject, String message, String replyto) { this.to = to; this.subject = subject; this.message = message; - this.from = from; this.replyto = replyto; } @@ -58,10 +55,6 @@ public final class TestEmailReceiver extends EmailProvider implements Runnable, return message; } - public String getFrom() { - return from; - } - public String getReplyto() { return replyto; } @@ -174,9 +167,8 @@ public final class TestEmailReceiver extends EmailProvider implements Runnable, String to = dis.readUTF(); String subject = dis.readUTF(); String message = dis.readUTF(); - String from = dis.readUTF(); String replyto = dis.readUTF(); - mails.add(new TestMail(to, subject, message, from, replyto)); + mails.add(new TestMail(to, subject, message, replyto)); } else if (type.equals("challengeAddrBox")) { String email = dis.readUTF(); dos.writeUTF(quickEmailCheck(email)); @@ -273,8 +265,8 @@ public final class TestEmailReceiver extends EmailProvider implements Runnable, } @Override - public void sendMail(String to, String subject, String message, String from, String replyto, String toname, String fromname, String errorsto, boolean extra) throws IOException { - mails.add(new TestMail(to, subject, message, from, replyto)); + public void sendMail(String to, String subject, String message, String replyto, String toname, String fromname, String errorsto, boolean extra) throws IOException { + mails.add(new TestMail(to, subject, message, replyto)); } }