]> WPIA git - gigi.git/blobdiff - util-testing/org/cacert/gigi/email/TestEmailProvider.java
fix: problem in testEmailProvieder with fast-email-checks.
[gigi.git] / util-testing / org / cacert / gigi / email / TestEmailProvider.java
index bee64f4bc3f1b6a4458eb73babfc8257cf558305..8d47142dffb45202802b61093240778c25095b62 100644 (file)
@@ -45,10 +45,10 @@ public class TestEmailProvider extends EmailProvider {
     }
 
     @Override
-    public synchronized void sendmail(String to, String subject, String message, String from, String replyto, String toname, String fromname, String errorsto, boolean extra) throws IOException {
+    public synchronized void sendMail(String to, String subject, String message, String from, String replyto, String toname, String fromname, String errorsto, boolean extra) throws IOException {
         while (true) {
             if ( !assureLocalConnection() && target != null) {
-                target.sendmail(to, subject, message, from, replyto, toname, fromname, errorsto, extra);
+                target.sendMail(to, subject, message, from, replyto, toname, fromname, errorsto, extra);
                 return;
             }
             try {
@@ -94,7 +94,7 @@ public class TestEmailProvider extends EmailProvider {
     public synchronized String checkEmailServer(int forUid, String address) throws IOException {
         while (true) {
             if ( !assureLocalConnection() && target != null) {
-                return checkEmailServer(forUid, address);
+                return target.checkEmailServer(forUid, address);
             }
             try {
                 out.writeUTF("challengeAddrBox");